Created
July 16, 2021 02:44
-
-
Save Yapcheekian/aa03f760338a3b3108f5392369adf1d4 to your computer and use it in GitHub Desktop.
Create elasticsearch index template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /_template/fluentbit | |
{ | |
"fluenbit" : { | |
"order" : 0, | |
"index_patterns" : [ | |
"fluentbit-*" | |
], | |
"settings" : { | |
"index" : { | |
"number_of_shards" : "10" | |
} | |
}, | |
"mappings" : { | |
"dynamic" : "false", | |
"properties" : { | |
"kubernetes" : { | |
"properties" : { | |
"container_name" : { | |
"norms" : false, | |
"type" : "text", | |
"doc_values" : false | |
}, | |
"pod_name" : { | |
"norms" : false, | |
"type" : "text", | |
"doc_values" : false | |
} | |
} | |
}, | |
"@timestamp" : { | |
"type" : "date" | |
}, | |
"log" : { | |
"norms" : false, | |
"type" : "text", | |
"doc_values" : false | |
} | |
} | |
}, | |
"aliases" : { } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment