# How to filebeat logs in all levels?

**URL:** https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656
**Category:** Beats
**Tags:** filebeat
**Created:** [March 29, 2016, 7:55am UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656 "2016-03-29T07:55:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![muhamadli302](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@muhamadli302](https://discuss.elastic.co/u/muhamadli302)
#### Post date: [March 29, 2016, 7:55am UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/1 "2016-03-29T07:55:01Z")

</div>

hello,

I'm trying to have filebeat create logs in all the levels (info, error, debug etc) in order to debug it's work, but I don't understand how to edit the .yml config file correctly in order to make this happen.  
Can someone help me?

---

<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: [March 29, 2016, 8:12am UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/2 "2016-03-29T08:12:56Z")

</div>

Just change "warning" in the [example in the documentation](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html) to "debug" and you should get what you want.

If that doesn't help, please show your current configuration. Format it as code with the `</>` toolbar button so that indentation won't be lost.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 29, 2016, 4:51pm UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/3 "2016-03-29T16:51:42Z")

</div>

I think you will also need to enable one or more [`selectors`](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html#_selectors).

```auto
logging:
  level: debug
  selectors: [*]

```

---

<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: [March 29, 2016, 4:58pm UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/4 "2016-03-29T16:58:54Z")

</div>

The documentation says

> If debug is used, but no selectors are configured, the \* selector will be used.

and the OP was interested in debug messages so I assumed no selector would be necessary.

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [March 29, 2016, 5:35pm UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/5 "2016-03-29T17:35:23Z")

</div>

Good point. I should read the docs more closely. 😌

---

<div class="post-metadata">

### Author: ![muhamadli302](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@muhamadli302](https://discuss.elastic.co/u/muhamadli302)
#### Post date: [March 30, 2016, 9:23am UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/6 "2016-03-30T09:23:54Z")

</div>

Thanks to all of you, I did miss the selectors part...  
now I found my problem, filebeat can't connect to elasticsearch.

---

<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 5, 2017, 9:54pm UTC](https://discuss.elastic.co/t/how-to-filebeat-logs-in-all-levels/45656/7 "2017-07-05T21:54:04Z")

</div>


