Reporting on Saved Objects

Is there a system index anyone would recommend to use for reporting on Kibana Saved Objects?

Why not using the Saved Objects API?

The Export API endpoint gives you a way to retrieve details about your Saved Objects.

For example, this curl + jq query returns a simple report of my data views indices and time field:

curl -s -u "${ELASTIC_USER}:${ELASTIC_PASSWORD}"  -X POST \
  -H 'kbn-xsrf: true' -H 'Content-Type: application/json' \
  ${KIBANA_HOST}/api/saved_objects/_export  \
  -d '{"type": "index-pattern"}' |\
  jq -c '. | select(.attributes.title) | {title:.attributes.title, timeFieldName:.attributes.timeFieldName}'

This is getting me all that I need. Thanks for the help.

1 Like

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