# Filebeat installation in linux

**URL:** https://discuss.elastic.co/t/filebeat-installation-in-linux/95388
**Category:** Beats
**Tags:** filebeat
**Created:** [August 1, 2017, 5:13pm UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388 "2017-08-01T17:13:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![vaddanam](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@vaddanam](https://discuss.elastic.co/u/vaddanam)
#### Post date: [August 1, 2017, 5:13pm UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/1 "2017-08-01T17:13:34Z")

</div>

Hi Team,

I installed the filebeat in linux environment using the rpm installation sudo install rpm filename. On observing that the default directory layout data folder "/var/lib/filebeat" and logs folder "/var/log/filebeat" are not created. Is this any issue. Do we need to create these folder manually? Can any one guide me why this happened. I am not able to see any logs whether the file beat is running or not. Please help me in this issue.

Thanks & Regards  
Sri

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [August 1, 2017, 8:47pm UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/2 "2017-08-01T20:47:15Z")

</div>

Hi,

There is no need to create it manually. These folders are created when Filebeat is started.  
If you run `filebeat.sh -e`, it logs to stderr, so you can see what is happening. If `-e` is not specified logs will be written to `/var/log/filebeat/filebeat` by default.

---

<div class="post-metadata">

### Author: ![vaddanam](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@vaddanam](https://discuss.elastic.co/u/vaddanam)
#### Post date: [August 2, 2017, 10:39am UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/3 "2017-08-02T10:39:35Z")

</div>

Thanks for the reply. I am running this as a service. using the below command:  
sudo service filebeat start

How do I change the above command to use -e option? Can I add it at the end after start?

---

<div class="post-metadata">

### Author: ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)
#### Post date: [August 2, 2017, 9:38pm UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/4 "2017-08-02T21:38:50Z")

</div>

It is not possible to use `-e` option in `sudo service filbeat start` command. If you want to use this option, you have to modify the initscript which is not advised.  
Does `/var/log/filebeat/filebeat` is created after you start the service? What is the return value of `sudo service filebeat start`?

---

<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: [August 7, 2017, 11:56am UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/5 "2017-08-07T11:56:41Z")

</div>

The idea is to run filebeat in foreground for testing/debugging. Once you got the configuration to work, you can run filebeat as service again.

---

<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: [September 4, 2017, 11:56am UTC](https://discuss.elastic.co/t/filebeat-installation-in-linux/95388/6 "2017-09-04T11:56:41Z")

</div>

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