I have ELK stack deployed along my application in docker. On first run I need to setup index pattern, and select ordering field. I know that my index pattern will always be logstash-*
and my field will be @timestamp
.
How can I preconfigure this in docker so I do not have to do it each time?
2
Answers
You can use the index template to define a template, and next time whenever you create an index matching the pattern name defined in your template, it will have a settings and mappings defined in the template.
Use Kibana create saved objects API to write a script and run it in a container or something like that: