# How to move $KIBANA\_HOME from /usr/share/ to /data/

**URL:** <https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650>\
**Category:** Kibana\
**Created:** [November 5, 2019, 5:19pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650 "2019-11-05T17:19:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [November 5, 2019, 5:19pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/1 "2019-11-05T17:19:11Z")

</div>

hi all.

i cant update ELK 7.4.1 to 7.4.2 due to [lack of] space in `/usr/`

```
Transaction check error:
  a instalação do pacote kibana-7.4.2-1.x86_64 precisa de 38MB no sistema de arquivos /usr

```

i have all ELK data in `/data/`

```
4,0K /data/logstash
129M /data/kibana
758G /data/elasticsearch

```

but `/usr/` is not very big and the ELK stack is taking all available space

```
329M /usr/share/logstash
468M /usr/share/elasticsearch
992M /usr/share/kibana

```

is there a way to move `$KIBANA_HOME` from `/usr/share/` to `/data/` as well?

---

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [November 7, 2019, 2:04pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/2 "2019-11-07T14:04:00Z")

</div>

should i post this on github as well?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [November 7, 2019, 3:23pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/3 "2019-11-07T15:23:23Z")

</div>

You can move the directories, but you will need to first stop the services.

---

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [November 7, 2019, 4:40pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/4 "2019-11-07T16:40:45Z")

</div>

alright...

wont kibana look for files in the old path?

is there a config in kibana.yml to set the new path?

or by move youre saying that i should create a symlink to /data/ after moving the files?

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [November 7, 2019, 6:35pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/5 "2019-11-07T18:35:51Z")

</div>

Oh, I see - these are the config directories, not the application directories. To move them for Kibana you will need to update `path.data` in you `kibana.yml`  
[https://www.elastic.co/guide/en/kibana/current/settings.html](https://www.elastic.co/guide/en/kibana/current/settings.html)

---

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [November 7, 2019, 8:22pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/6 "2019-11-07T20:22:54Z")

</div>

@tylersmalley

i already have `path.data` configured to `/data/kibana/` (with 129MB in it)

my current problem is `/usr/share/kibana/` (992M), also known as `$KIBANA_HOME`

is there a `path.home` or anything similar in `kibana.yml` ?

so i could do something like

```
#$ mkdir /data/kibana/home/
#$ mv /usr/share/kibana/* /data/kibana/home/

```

and in `kibana.yml`

```
path.data: /data/kibana/
path.home: /data/kibana/home/
```

---

<div class="post-metadata">

**Author:** ![yodog](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yodog/32/4822_2.png) [@yodog](https://discuss.elastic.co/u/yodog)\
**Post date:** [November 25, 2019, 4:38pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/7 "2019-11-25T16:38:52Z")

</div>

i managed to make room for the update, but i'm still in need of a permanent solution.

any ideas?

---

<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:** [December 23, 2019, 4:38pm UTC](https://discuss.elastic.co/t/how-to-move-kibana-home-from-usr-share-to-data/206650/8 "2019-12-23T16:38:53Z")

</div>

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