# Which file I need to config "path.home: /usr/share/beat path.config: /etc/beat path.data: /var/lib/beat path.logs: /var/log/"

**URL:** <https://discuss.elastic.co/t/which-file-i-need-to-config-path-home-usr-share-beat-path-config-etc-beat-path-data-var-lib-beat-path-logs-var-log/117973>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 1, 2018, 8:53am UTC](https://discuss.elastic.co/t/which-file-i-need-to-config-path-home-usr-share-beat-path-config-etc-beat-path-data-var-lib-beat-path-logs-var-log/117973 "2018-02-01T08:53:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_Ts](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@Deepak\_Ts](https://discuss.elastic.co/u/Deepak_Ts)\
**Post date:** [February 1, 2018, 8:53am UTC](https://discuss.elastic.co/t/which-file-i-need-to-config-path-home-usr-share-beat-path-config-etc-beat-path-data-var-lib-beat-path-logs-var-log/117973/1 "2018-02-01T08:53:54Z")

</div>

In which file i need to config

path.home: /usr/share/beat  
path.config: /etc/beat  
path.data: /var/lib/beat  
path.logs: /var/log/

and what are the prerequisites config before I start these config

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [February 1, 2018, 1:00pm UTC](https://discuss.elastic.co/t/which-file-i-need-to-config-path-home-usr-share-beat-path-config-etc-beat-path-data-var-lib-beat-path-logs-var-log/117973/2 "2018-02-01T13:00:20Z")

</div>

Did you install Filebeat from DEB or RPM? If yes, there's a script in `/usr/bin/filebeat` that sets these variables to their correct values. Here is its content:

```auto
#!/usr/bin/env bash

# Script to run filebeat in foreground with the same path settings that
# the init script / systemd unit file would do.

exec /usr/share/filebeat/bin/filebeat \
  -path.home /usr/share/filebeat \
  -path.config /etc/filebeat \
  -path.data /var/lib/filebeat \
  -path.logs /var/log/filebeat \
  "$@"

```

So if you are running for packages, everything should be already setup. If you are not, you could make a similar script.

---

<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:** [March 1, 2018, 1:00pm UTC](https://discuss.elastic.co/t/which-file-i-need-to-config-path-home-usr-share-beat-path-config-etc-beat-path-data-var-lib-beat-path-logs-var-log/117973/3 "2018-03-01T13:00:32Z")

</div>

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