# Kibana saved objects

**URL:** https://discuss.elastic.co/t/kibana-saved-objects/269418
**Category:** Kibana
**Created:** [April 7, 2021, 7:57am UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418 "2021-04-07T07:57:39Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Mohith\_Vegi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohith_vegi/32/81693_2.png) [@Mohith\_Vegi](https://discuss.elastic.co/u/Mohith_Vegi)
#### Post date: [April 7, 2021, 7:57am UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418/1 "2021-04-07T07:57:39Z")

</div>

Hi,

For the kibana saved objects API , when we run the curl command for exporting saved objects, where does the json file be stored.

curl -X POST "localhost:5601/api/saved\_objects/\_export -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'  
{  
"type": "index-pattern"  
}'

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 7, 2021, 8:16am UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418/2 "2021-04-07T08:16:47Z")

</div>

Based on that request, it should be simply putting it to stdout in your shell. You might want to use the flag to save the output to a file as well.

---

<div class="post-metadata">

### Author: ![Mohith\_Vegi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohith_vegi/32/81693_2.png) [@Mohith\_Vegi](https://discuss.elastic.co/u/Mohith_Vegi)
#### Post date: [April 7, 2021, 8:24am UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418/3 "2021-04-07T08:24:23Z")

</div>

can you please provide me the flag to be used, since i am not able to see any output in console, i can check it in file.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [April 7, 2021, 9:06pm UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418/4 "2021-04-07T21:06:12Z")

</div>

`man curl` will tell you what that is.

But it's `-o`.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 5, 2021, 9:07pm UTC](https://discuss.elastic.co/t/kibana-saved-objects/269418/5 "2021-05-05T21:07:00Z")

</div>

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