# Setting advanced settings - env? kibana.yml? curl?

**URL:** <https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023>\
**Category:** Kibana\
**Created:** [March 10, 2020, 9:11pm UTC](https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023 "2020-03-10T21:11:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Supermathie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/supermathie/32/44936_2.png) [@Supermathie](https://discuss.elastic.co/u/Supermathie)\
**Post date:** [March 10, 2020, 9:11pm UTC](https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023/1 "2020-03-10T21:11:48Z")

</div>

> [@Kibana UI advanced settings](https://discuss.elastic.co/t/kibana-ui-advanced-settings/99697/4):
>
> They are stored in the `.kibana` index.

Is there a way to specify these settings (especially `dateFormat:tz`) in either the env or in `kibana.yml`?

Alternatively, is there a way to query for and update these settings via curl? Can you provide an example of the correct syntax?

---

<div class="post-metadata">

**Author:** ![Supermathie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/supermathie/32/44936_2.png) [@Supermathie](https://discuss.elastic.co/u/Supermathie)\
**Post date:** [March 10, 2020, 9:20pm UTC](https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023/2 "2020-03-10T21:20:23Z")

</div>

to (partially) answer my own question, doing it via `curl`:

```bash
→ curl -s http://localhost:5601/api/kibana/settings | jq '.settings."dateFormat:tz".userValue'
null

→ curl -sX POST -H 'kbn-xsrf: 1' -H 'content-type: application/json' http://localhost:5601/api/kibana/settings -d '{"changes":{"dateFormat:tz":"utc"}}'
{"settings":{"buildNum":{"userValue":19459},"defaultIndex":{"userValue":"00000000-0000-0000-0000-598b7d7dd7e3"},"dateFormat:tz":{"userValue":"utc"}}}

→ curl -s http://localhost:5601/api/kibana/settings | jq '.settings."dateFormat:tz".userValue'
"utc"

→ curl -sX POST -H 'kbn-xsrf: 1' -H 'content-type: application/json' http://localhost:5601/api/kibana/settings -d '{"changes":{"dateFormat:tz":null}}'
{"settings":{"buildNum":{"userValue":19459},"defaultIndex":{"userValue":"00000000-0000-0000-0000-598b7d7dd7e3"}}}

→ curl -s http://localhost:5601/api/kibana/settings | jq '.settings."dateFormat:tz".userValue'
null

```

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [March 11, 2020, 8:54am UTC](https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023/3 "2020-03-11T08:54:34Z")

</div>

You are right, using the Kibana API is the way to go here. There is no way to specify it in env/`kibana.yml`.

---

<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:** [April 8, 2020, 8:54am UTC](https://discuss.elastic.co/t/setting-advanced-settings-env-kibana-yml-curl/223023/4 "2020-04-08T08:54:45Z")

</div>

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