Skip to content

Instantly share code, notes, and snippets.

@Yapcheekian
Created July 16, 2021 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yapcheekian/aa03f760338a3b3108f5392369adf1d4 to your computer and use it in GitHub Desktop.
Save Yapcheekian/aa03f760338a3b3108f5392369adf1d4 to your computer and use it in GitHub Desktop.
Create elasticsearch index template
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