Kibana REST API not working

Hi,
I tried to check index-patterns using kibana rest api, but it is not working.

curl -XGET http://localhost:5601/api/saved_objects/index-pattern/$indx

I am using kibana 7.3.2

Thanks

Hello Maria,

It is hard to help with so few details. What problem do you have? Are you unable to connect? Are you unable to authenticate?Does the search return no results?

Are you sure that you have used the correct ID? Sometimes, the ID and the pattern are not the same, e.g. the Apm-Server pattern is apm-* but the ID is apm_static_index_pattern_id. Pattern created in Kibana normally have an ID like a63ccd60-703d-11ea-8b3a-637da4812491.

Best regards
Wolfram

Thank you so much for your reply. I was actually using the pattern instead of the pattern id. It resolved now. I got the index pattern ids using http://localhost:9200/.kibana/_search

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