Create default index

Hi,

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.

Thanks,
Jas

Hi,

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 : https://github.com/elastic/kibana/pull/10858

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

Thanks,
Bhavya

Have a look at https://www.elastic.co/guide/en/kibana/master/saved-objects-api-create.html

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