- Kibana Guide: other versions:
- What is Kibana?
- What’s new in 8.2
- Kibana concepts
- Quick start
- Set up
- Install Kibana
- Configure Kibana
- Alerting and action settings
- APM settings
- Banners settings
- Enterprise Search settings
- Fleet settings
- i18n settings
- Logging settings
- Logs settings
- Metrics settings
- Monitoring settings
- Reporting settings
- Search sessions settings
- Secure settings
- Security settings
- Spaces settings
- Task Manager settings
- Telemetry settings
- URL drilldown settings
- Start and stop Kibana
- Access Kibana
- Securing access to Kibana
- Add data
- Upgrade Kibana
- Configure security
- Configure reporting
- Configure logging
- Configure monitoring
- Command line tools
- Production considerations
- Discover
- Dashboard and visualizations
- Canvas
- Maps
- Build a map to compare metrics by country or region
- Track, visualize, and alert on assets in real time
- Map custom regions with reverse geocoding
- Heat map layer
- Tile layer
- Vector layer
- Plot big data
- Search geographic data
- Configure map settings
- Connect to Elastic Maps Service
- Import geospatial data
- Troubleshoot
- Reporting and sharing
- Machine learning
- Graph
- Alerting
- Observability
- APM
- Security
- Dev Tools
- Fleet
- Osquery
- Stack Monitoring
- Stack Management
- REST API
- Get features API
- Kibana spaces APIs
- Kibana role management APIs
- User session management APIs
- Saved objects APIs
- Data views API
- Index patterns APIs
- Alerting APIs
- Action and connector APIs
- Cases APIs
- Import and export dashboard APIs
- Logstash configuration management APIs
- Machine learning APIs
- Short URLs APIs
- Get Task Manager health
- Upgrade assistant APIs
- Kibana plugins
- Troubleshooting
- Accessibility
- Release notes
- Developer guide
Export objects API
editExport objects API
edit[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Retrieve sets of saved objects that you want to import into Kibana.
Request
editPOST <kibana host>:<port>/api/saved_objects/_export
POST <kibana host>:<port>/s/<space_id>/api/saved_objects/_export
Path parameters
edit-
space_id
-
(Optional, string) An identifier for the space. If
space_id
is not provided in the URL, the default space is used.
Request body
edit-
type
- (Optional, array|string) The saved object types to include in the export.
-
objects
- (Optional, array) A list of objects to export.
-
includeReferencesDeep
- (Optional, boolean) Includes all of the referenced objects in the exported objects.
-
excludeExportDetails
- (Optional, boolean) Do not add export details entry at the end of the stream.
You must include type
or objects
in the request body.
The savedObjects.maxImportExportSize
configuration setting
limits the number of saved objects which may be exported.
Response body
editThe format of the response body is newline delimited JSON. Each exported object is exported as a valid JSON record and separated by the newline character \n.
When excludeExportDetails=false
(the default) we append an export result details record at the end of the file after all the saved object records. The export result details object has the following format:
{ "exportedCount": 27, "missingRefCount": 2, "missingReferences": [ { "id": "an-id", "type": "visualisation"}, { "id": "another-id", "type": "index-pattern"} ] }
Response code
edit-
200
- Indicates a successful call.
Examples
editExport all data view saved objects:
$ curl -X POST api/saved_objects/_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' { "type": "index-pattern" }'
Export all data view saved objects and exclude the export summary from the stream:
$ curl -X POST api/saved_objects/_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' { "type": "index-pattern", "excludeExportDetails": true }'
Export a specific saved object:
$ curl -X POST api/saved_objects/_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' { "objects": [ { "type": "dashboard", "id": "be3733a0-9efe-11e7-acb3-3dab96693fab" } ] }'
Export a specific saved object and it’s related objects :
$ curl -X POST api/saved_objects/_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' { "objects": [ { "type": "dashboard", "id": "be3733a0-9efe-11e7-acb3-3dab96693fab" } ], "includeReferencesDeep": true }'