# Export field format

**URL:** <https://discuss.elastic.co/t/export-field-format/130866>\
**Category:** Kibana\
**Created:** [May 7, 2018, 3:56pm UTC](https://discuss.elastic.co/t/export-field-format/130866 "2018-05-07T15:56:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kora](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kora](https://discuss.elastic.co/u/kora)\
**Post date:** [May 7, 2018, 3:56pm UTC](https://discuss.elastic.co/t/export-field-format/130866/1 "2018-05-07T15:56:52Z")

</div>

Hi all.

So I can see similar ticket 80178 without solution.  
I have a field that is a number and I format that using Kibana to show it as a Duration.  
But I'm unable to find where exactly is Kibana storing that information.

I can't find it in \_mappings, \_settings or as a content of the .kibana index. It is also not exported as json from Export everything. However when I delete .kibana index and recreate it by restarting kibana the field format in kibana ui is gone so it has to be somewhere in .kibana index, but where? Which api could I call?  
I found this [https://github.com/elastic/kibana/issues/12756](https://github.com/elastic/kibana/issues/12756) as well but I have nothing in fieldFormatMap.  
I want to have this predefined for out stock installation in docker so it doesn't have to be setup at every installation.

Thanks

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [May 7, 2018, 4:07pm UTC](https://discuss.elastic.co/t/export-field-format/130866/2 "2018-05-07T16:07:26Z")

</div>

take a look at this file, it creates initial index for our tests, with some field formats defined:

[https://github.com/elastic/kibana/blob/master/test/functional/fixtures/es\_archiver/visualize/data.json.gz](https://github.com/elastic/kibana/blob/master/test/functional/fixtures/es_archiver/visualize/data.json.gz)

let me know if this helps

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [May 7, 2018, 4:12pm UTC](https://discuss.elastic.co/t/export-field-format/130866/3 "2018-05-07T16:12:15Z")

</div>

Field formats are stored on the index pattern saved object. Unfortunately, index patterns are not exported by `Export everything`. There is an [open issue](https://github.com/elastic/kibana/issues/4288) about including index patterns in saved object exports.

You can view the index pattern saved objects by going to Dev tools and running

```auto
GET .kibana/_search
{
  "query": { 
    "bool": { 
      "must": [
        { "match": { "type": "index-pattern" }}
      ]
    }
  }
}

```

You can use the [dashboard export API](https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/server/routes/api/export/index.js) to export all saved objects associated to a dashboard.

---

<div class="post-metadata">

**Author:** ![kora](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kora](https://discuss.elastic.co/u/kora)\
**Post date:** [May 7, 2018, 4:25pm UTC](https://discuss.elastic.co/t/export-field-format/130866/4 "2018-05-07T16:25:14Z")

</div>

I was trying to fetch it using `{ "query": { "match_all": {} } }` 🤐

Thanks @Nathan_Reese amd @ppisljar !

---

<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:** [June 4, 2018, 4:25pm UTC](https://discuss.elastic.co/t/export-field-format/130866/5 "2018-06-04T16:25:20Z")

</div>

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