# Configure Filebeat for All Logs

**URL:** <https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 19, 2016, 8:53am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514 "2016-01-19T08:53:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 19, 2016, 8:53am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/1 "2016-01-19T08:53:16Z")

</div>

Hello,

I have installed ELK on my server. So now, I ma trying to use and configure Filebeat to send somme informations to my ELK server, but when I configure filebeat from some tutorial, it does not work.

Someone has any advices or tutorial that can Help me.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 19, 2016, 8:58am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/2 "2016-01-19T08:58:57Z")

</div>

Please post your full configuration and make sure you format the configuration as code (there's a toolbar button for it).

Please also post the logs you get when you start Filebeat with `-v -d "*"`.

---

<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:** [January 19, 2016, 10:56am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/3 "2016-01-19T10:56:54Z")

</div>

which tutorial have you used?

Filebeat has an [official getting started guide](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-getting-started.html).

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 19, 2016, 2:17pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/4 "2016-01-19T14:17:33Z")

</div>

> [@magnusbaeck](#):
>
> -v -d "\*"

Hello, I have followed some tutorial to set my ELK server, but for Filebeat I have used the Official Guide.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 19, 2016, 3:20pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/5 "2016-01-19T15:20:11Z")

</div>

Hello,

Here is the result when I am trying to start Filebeat :

> root@crinforecettevm01:~# /etc/init.d/filebeat start -v -d "\*"  
> 2016/01/19 15:18:19.009625 transport.go:125: ERR SSL client failed to connect with: dial tcp 37.59.235.27:5044: getsockopt: connection refused  
> root@crinforecettevm01:~#

I think i have something wrong with my SSL

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [January 20, 2016, 8:23am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/6 "2016-01-20T08:23:51Z")

</div>

Did you verify that your Logstash server is running and working as expected? Can you share your config file?

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 21, 2016, 2:55pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/7 "2016-01-21T14:55:04Z")

</div>

Hello,

Yes for sure my logstash server is running.  
Here is the config for filebeat:

> input {  
> beats {  
> port =\> 5044  
> type =\> "logs"  
> ssl =\> true  
> ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
> ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
> }  
> }

Here is the config for elasticsearch :

> output {  
> elasticsearch { hosts =\> ["localhost:9200"] }  
> stdout { codec =\> rubydebug }  
> }

And here is the confif file :

> filter {  
> if [type] == "syslog" {  
> grok {  
> match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
> add\_field =\> ["received\_at", "%{@timestamp}"]  
> add\_field =\> ["received\_from", "%{host}"]  
> }  
> syslog\_pri { }  
> date {  
> match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
> }  
> }  
> }

When trying to restart my logstash server, I have this message :

> {:timestamp=\>"2016-01-21T15:54:26.985000+0100", :message=\>"The error reported is: \n Address already in use - bind - Adresse déjà utilisée"}

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [January 21, 2016, 3:48pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/8 "2016-01-21T15:48:12Z")

</div>

Can you also share the filebeat config? The above is the Logstash config.

For your error above: It seems like you have one more logstash instance running in the background you should stop first. Probably this LS instance has a different config.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 21, 2016, 4:25pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/10 "2016-01-21T16:25:57Z")

</div>

Hi,

There is just one line in my elasticsearch.yml, it's :

> network.host: localhost

All other lines are commented. About logstash, I am sure that no other instance is running. I see anything in my process list.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 21, 2016, 6:13pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/11 "2016-01-21T18:13:00Z")

</div>

> {:timestamp=\>"2016-01-21T15:54:26.985000+0100", :message=\>"The error reported is: \n Address already in use - bind - Adresse déjà utilisée"}

Logstash reads _all_ files in the configuration file directory (probably /etc/logstash/conf.d). Make sure you don't have any backup files or similar laying around.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 22, 2016, 8:14am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/12 "2016-01-22T08:14:34Z")

</div>

Hello,  
I had some backup files in the folder of logstash. So I move them and now logstash is UP and RUNNING 🙂  
When starting Filebeat, no error and some informations appears in Kibana. So good news.

So now, I am going to configure filebeat. I want to get some logs from personal folders then send them to logstash to see them in Kibana.

Do you know How Can I make this ? Also, Do you have any informations about filter ? As now, I have a lot of informations in Kibana

Thanks a lot

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 22, 2016, 8:18am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/13 "2016-01-22T08:18:08Z")

</div>

> Do you know How Can I make this ? Also, Do you have any informations about filter ? As now, I have a lot of informations in Kibana

If you ask specific questions we can help out. For best results please place Logstash questions in the Logstash category.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 22, 2016, 1:13pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/14 "2016-01-22T13:13:24Z")

</div>

Ok thanks.

About Filebeat, I start it this morning and I see informations in Kibana. But now, no data is return.  
Is it normal ?

I don't understand how filebeat is working

Thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 23, 2016, 4:28pm UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/15 "2016-01-23T16:28:19Z")

</div>

You mean no _new_ data is seen in Kibana? Or no data at all? If the latter it sounds like an Elasticsearch problem.

Hint: Your questions are still vague and hard to answer.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 25, 2016, 9:02am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/16 "2016-01-25T09:02:02Z")

</div>

Hello  
I mean no new data. Some datas has been sent when I start Filebeat. But for now, no new data.  
I don't know if it's a normal process or may be If I have some issues with elasticsearch

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 25, 2016, 9:07am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/17 "2016-01-25T09:07:59Z")

</div>

Is Filebeat still running? Have the monitored files actually changed? Are there any clues in its log file? You may need to increase the logging by starting it with `-v -d "*"`.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 25, 2016, 9:35am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/18 "2016-01-25T09:35:58Z")

</div>

Yep file beat is still running. The files monitored ? You mean the log file ? If yes, for sure they have changed.  
About "clues in log file", what do you mean for this ? As my english is not perfect and I am not sure to understand it very well.  
I restart filebeat with the options **-v -d "\*"**

In the filebeat conf, I don't see some line to configure filebeat log, do you know where I can get log from filebeat ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [January 25, 2016, 9:40am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/19 "2016-01-25T09:40:12Z")

</div>

See [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html#configuration-logging](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-configuration-details.html#configuration-logging) for information about how to configure Filebeat's logging. Once you have some logs you can post it here to get help.

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 25, 2016, 10:28am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/20 "2016-01-25T10:28:59Z")

</div>

Thanks for the link.  
Will configure this this afternoon and then will post the log file

---

<div class="post-metadata">

**Author:** ![naseerudeenmeeajane](https://avatars.discourse-cdn.com/v4/letter/n/c57346/32.png) [@naseerudeenmeeajane](https://discuss.elastic.co/u/naseerudeenmeeajane)\
**Post date:** [January 25, 2016, 10:51am UTC](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514/21 "2016-01-25T10:51:15Z")

</div>

Hello, here is the stdout when start Filebeat with the right option :

```
root@crinforecettevm01:/var/log/mybeat# /etc/init.d/filebeat start -v -d "*"
2016/01/25 10:43:20.043185 beat.go:97: DBG Initializing output plugins
2016/01/25 10:43:20.043237 geolite.go:24: INFO GeoIP disabled: No paths were set under output.geoip.paths
2016/01/25 10:43:20.058109 client.go:244: DBG ES Ping(url=http://localhost:9200, timeout=1m30s)

2016/01/25 10:44:23.328609 client.go:249: DBG Ping request failed with: Head http://localhost:9200: dial tcp [::1]:9200: getsockopt: connection refused
2016/01/25 10:44:23.328652 outputs.go:111: INFO Activated elasticsearch as output plugin.
2016/01/25 10:44:23.607016 outputs.go:111: INFO Activated logstash as output plugin.
2016/01/25 10:44:23.607052 publish.go:198: DBG create output worker: 0x0, 0xc8200cd0e0
2016/01/25 10:44:23.607092 publish.go:198: DBG create output worker: 0x0, 0x0
2016/01/25 10:44:23.619181 publish.go:235: DBG No output is defined to store the topology. The server fields might not be filled.
2016/01/25 10:44:23.619240 publish.go:249: INFO Publisher name: crinforecettevm01
2016/01/25 10:44:23.619531 async.go:95: DBG create bulk processing worker (interval=1s, bulk size=50)
2016/01/25 10:44:23.619594 async.go:95: DBG create bulk processing worker (interval=1s, bulk size=200)
2016/01/25 10:44:23.619645 beat.go:107: INFO Init Beat: filebeat; Version: 1.0.1
root@crinforecettevm01:/var/log/mybeat#

```

About log file, the level is "Debug" and there is a lot of lines. But here is the line that I feel not good :

> 2016-01-25T11:48:40+01:00 DBG Ping request failed with: Head [http://localhost:9200](http://localhost:9200): dial tcp [::1]:9200: getsockopt: connection refused  
> 2016-01-25T11:48:40+01:00 INFO Connecting error publishing events (retrying): Head [http://localhost:9200](http://localhost:9200): dial tcp [::1]:9200: getsockopt: connection refused

[Next page](https://discuss.elastic.co/t/configure-filebeat-for-all-logs/39514.md?page=2)
