# Have to export the log file ending with \_debug (log file name)

**URL:** <https://discuss.elastic.co/t/have-to-export-the-log-file-ending-with-debug-log-file-name/238300>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 23, 2020, 4:21pm UTC](https://discuss.elastic.co/t/have-to-export-the-log-file-ending-with-debug-log-file-name/238300 "2020-06-23T16:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhilesh](https://avatars.discourse-cdn.com/v4/letter/n/46a35a/32.png) [@nikhilesh](https://discuss.elastic.co/u/nikhilesh)\
**Post date:** [June 23, 2020, 4:21pm UTC](https://discuss.elastic.co/t/have-to-export-the-log-file-ending-with-debug-log-file-name/238300/1 "2020-06-23T16:21:21Z")

</div>

Hi Team,

Can you please help on this requirement.

I have a log files with naming "date\_action" and "date\_debug" , so in file beat input configuration we have to include "date\_debug" log file and to exclude "date\_action" log file.

Thanks  
Nikhilesh Gade

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [June 24, 2020, 1:34am UTC](https://discuss.elastic.co/t/have-to-export-the-log-file-ending-with-debug-log-file-name/238300/2 "2020-06-24T01:34:49Z")

</div>

You can try exclude\_files in the config: [https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-files](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-exclude-files)

---

<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 22, 2020, 3:34am UTC](https://discuss.elastic.co/t/have-to-export-the-log-file-ending-with-debug-log-file-name/238300/3 "2020-07-22T03:34:49Z")

</div>

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