# Can Filebeat creating multiple logging files

**URL:** <https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 24, 2020, 6:24am UTC](https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460 "2020-07-24T06:24:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayjavaprgmr](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@vijayjavaprgmr](https://discuss.elastic.co/u/vijayjavaprgmr)\
**Post date:** [July 24, 2020, 6:24am UTC](https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460/1 "2020-07-24T06:24:36Z")

</div>

Hi Team,

I am currently using Filebeat 7.6.2. could like to monitor the filebeat logging logs and want to write if any error during filebeat process then error logs need to writes in separate log file ex. [filebeat\_error.log]. is there any possibility, can filebeat write multiple logging files ex [info should be in filebeat\_info.log & error should be in filebeat\_error.log] can you please help on this.

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [July 27, 2020, 8:29am UTC](https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460/2 "2020-07-27T08:29:25Z")

</div>

I think you're referring this sample: [https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#indices-option-es](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#indices-option-es)

(see `output.elasticsearch`)

---

<div class="post-metadata">

**Author:** ![vijayjavaprgmr](https://avatars.discourse-cdn.com/v4/letter/v/ce7236/32.png) [@vijayjavaprgmr](https://discuss.elastic.co/u/vijayjavaprgmr)\
**Post date:** [July 30, 2020, 4:52pm UTC](https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460/3 "2020-07-30T16:52:50Z")

</div>

The above one is sending error logs to elastic search/logstash etc. but we want to write filebeat's logs [ERROR] in different file. means whether filebeat able to write it's log message based on level [ex filebeat\_info.log, filebeat\_error.log, filebeat\_warn.log] ,

---

<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:** [August 27, 2020, 6:52pm UTC](https://discuss.elastic.co/t/can-filebeat-creating-multiple-logging-files/242460/4 "2020-08-27T18:52:50Z")

</div>

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