Create default index


I have the following in my logstash.conf file:

 output {
 	elasticsearch {
  		hosts => "elasticsearch:9200"
        index => "myindex-%{+YYYY.MM.dd}"

How can I get myindex to be the default index in kibana via some kibana.yml or logstash.conf (or any other non-gui way)? Right now I still have to create the index pattern myindex-* and set timestamp via the gui. I'd like to have that ready to go out of the box.

I had previously asked this same question in the logstash discussion, but was directed to ask it here. Your help is much appreciated.



Not very easily. Users usually create index patterns.

You should log an enhancement request here:
Beats in our stack creates does this by using APIs :

Please note we don't consider this the official api yet. You can give it a try.


Have a look at

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.