# Cmd to locate filebeat config

**URL:** <https://discuss.elastic.co/t/cmd-to-locate-filebeat-config/156565>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 14, 2018, 1:31am UTC](https://discuss.elastic.co/t/cmd-to-locate-filebeat-config/156565 "2018-11-14T01:31:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravinm](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@aravinm](https://discuss.elastic.co/u/aravinm)\
**Post date:** [November 14, 2018, 1:31am UTC](https://discuss.elastic.co/t/cmd-to-locate-filebeat-config/156565/1 "2018-11-14T01:31:52Z")

</div>

Hi, may i please know the command to locate the filebeat config file using command prompt using ubuntu? Thank you for your time.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [November 14, 2018, 3:35pm UTC](https://discuss.elastic.co/t/cmd-to-locate-filebeat-config/156565/2 "2018-11-14T15:35:44Z")

</div>

The location of the configuration file depends on the installation method. There is no common command to locate this file. Maybe system tools like 'locate' or 'find' on CLI or UI based file finders.

If you installed the deb, then the config file is in `/etc/filebeat/filebeat.yml`.

When starting up filebeat on console, it logs config and data directories. Just run with `filebeat -e -v` (make sure service is not running), stop filebeat and check log output.

---

<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 12, 2018, 3:35pm UTC](https://discuss.elastic.co/t/cmd-to-locate-filebeat-config/156565/3 "2018-12-12T15:35:49Z")

</div>

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