# Linux install of Filebeat under different directory

**URL:** <https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 28, 2023, 9:40pm UTC](https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130 "2023-06-28T21:40:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paolovalladolid](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paolovalladolid](https://discuss.elastic.co/u/paolovalladolid)\
**Post date:** [June 28, 2023, 9:40pm UTC](https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130/1 "2023-06-28T21:40:05Z")

</div>

Hi all,

In the past I've followed the Filebeat installation instructions for RPM installation on Linux verbatim without issue.

But now we have a machine that lacks space under /etc, so we want to install it under /opt instead.

We tried to do that but the system cannot find the path to Filebeat.

Is there a config file we should look at or do we need to manually set the path? If so, how do we do it?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [June 28, 2023, 9:47pm UTC](https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130/2 "2023-06-28T21:47:33Z")

</div>

Is your partition where the `/etc` is mounted full?

Filebeat does not need much space under `/etc`, normally it is under `10 MB`, the `/etc/filebeat` just keeps the configuration files.

The binary are all installed under `/usr/share/filebeat`.

But if you want to install on `/opt` you will need to install it using the `tar.gz` file and create/edit the service file to point to the correct binary path.

---

<div class="post-metadata">

**Author:** ![paolovalladolid](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@paolovalladolid](https://discuss.elastic.co/u/paolovalladolid)\
**Post date:** [June 28, 2023, 9:56pm UTC](https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130/3 "2023-06-28T21:56:07Z")

</div>

We do not have a /usr/share/filebeat directory, which makes me think we did something wrong with the installation.

We will try the method you suggest, using the tar.gz file.

Thanks!

---

<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:** [July 26, 2023, 11:56pm UTC](https://discuss.elastic.co/t/linux-install-of-filebeat-under-different-directory/337130/4 "2023-07-26T23:56:11Z")

</div>

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