# Filebeat cant monitor the log file that file name include \[\]

**URL:** <https://discuss.elastic.co/t/filebeat-cant-monitor-the-log-file-that-file-name-include/311758>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 9, 2022, 3:51pm UTC](https://discuss.elastic.co/t/filebeat-cant-monitor-the-log-file-that-file-name-include/311758 "2022-08-09T15:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyjj1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zyjj1/32/109408_2.png) [@zyjj1](https://discuss.elastic.co/u/zyjj1)\
**Post date:** [August 9, 2022, 3:51pm UTC](https://discuss.elastic.co/t/filebeat-cant-monitor-the-log-file-that-file-name-include/311758/1 "2022-08-09T15:51:31Z")

</div>

We monitor a log file. The name of this log file is mwsummary-log[0].log. We found that filebeat cannot monitor any content of this file. Also no data is sent to elasticsearch. If we remove the in the log file name, filebeat can monitor the content of the log and send it to elasticsearch. How do we configure it to be able to monitor log files whose filename contains ""?

---

<div class="post-metadata">

**Author:** ![Tetiana\_Kravchenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tetiana_kravchenko/32/102683_2.png) [@Tetiana\_Kravchenko](https://discuss.elastic.co/u/Tetiana_Kravchenko)\
**Post date:** [August 17, 2022, 2:13pm UTC](https://discuss.elastic.co/t/filebeat-cant-monitor-the-log-file-that-file-name-include/311758/2 "2022-08-17T14:13:56Z")

</div>

Hi @zyjj1

Did you try to set log path in single quotas, as suggested [here](https://www.elastic.co/guide/en/beats/filebeat/master/yaml-tips.html#wrap-paths-in-quotes) ?

---

<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:** [September 14, 2022, 4:14pm UTC](https://discuss.elastic.co/t/filebeat-cant-monitor-the-log-file-that-file-name-include/311758/3 "2022-09-14T16:14:23Z")

</div>

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