Create index pattern automatically in kibana dashboard

Hi,

Can anyone help me how to create index pattern automatically using curl or any other method in kibana dashboard

Hi @suresh123,

If you are on Kibana 7+, you can use this sample:

curl -X POST "localhost:5601/"localhost:5601/api/saved_objects/index-pattern/my-pattern"  -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
  "attributes": {
    "title": "my-pattern-*"
  }
}

You can find more details in our documentation

Regards, Dzmitry

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