# Filebeat log filename when using recursive \*.log filter

**URL:** <https://discuss.elastic.co/t/filebeat-log-filename-when-using-recursive-log-filter/45025>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 21, 2016, 4:48pm UTC](https://discuss.elastic.co/t/filebeat-log-filename-when-using-recursive-log-filter/45025 "2016-03-21T16:48:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JakeDEvans](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@JakeDEvans](https://discuss.elastic.co/u/JakeDEvans)\
**Post date:** [March 21, 2016, 4:48pm UTC](https://discuss.elastic.co/t/filebeat-log-filename-when-using-recursive-log-filter/45025/1 "2016-03-21T16:48:48Z")

</div>

I was wondering if there is a way to log the source filename of each file filebeat collects logs from without manually specifying fields for each file individually.

Thank You  
-Jake

---

<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 21, 2016, 5:34pm UTC](https://discuss.elastic.co/t/filebeat-log-filename-when-using-recursive-log-filter/45025/2 "2016-03-21T17:34:05Z")

</div>

This information is reported in the [`source`](https://www.elastic.co/guide/en/beats/filebeat/current/exported-fields-log.html#_source) field.

---

<div class="post-metadata">

**Author:** ![JakeDEvans](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@JakeDEvans](https://discuss.elastic.co/u/JakeDEvans)\
**Post date:** [March 21, 2016, 5:51pm UTC](https://discuss.elastic.co/t/filebeat-log-filename-when-using-recursive-log-filter/45025/3 "2016-03-21T17:51:22Z")

</div>

Must be an issue with my grok filter or gelf template, I'm getting source as the hostname of the box. Thanks!

---

<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/filebeat-log-filename-when-using-recursive-log-filter/45025/4 "2017-07-05T21:54:24Z")

</div>


