Kibana and REST API output

I'm complete newbie with Elasticsearch, so sorry for maybe simple questions:) My problem. I'm trying to retrieve index patterns via Kibana's REST API. I'm trying to use the following command:

curl -X GET "localhost:5601/api/saved_objects/_find?type=index-pattern" -H 'kbn-xsrf: true'

And the problem is that output is not formatted, it's hard to read such output. Is there any way to get formatted output? Thanks.

Which version are you using? From 7.13+ there is an experimental Kibana index-pattern API, that will give you a better output.

This is the [documentation(Index patterns APIs | Kibana Guide [7.15] | Elastic).

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