# Mentioning path in filebeat.yml

**URL:** <https://discuss.elastic.co/t/mentioning-path-in-filebeat-yml/253018>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 22, 2020, 2:25pm UTC](https://discuss.elastic.co/t/mentioning-path-in-filebeat-yml/253018 "2020-10-22T14:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [October 22, 2020, 2:25pm UTC](https://discuss.elastic.co/t/mentioning-path-in-filebeat-yml/253018/1 "2020-10-22T14:25:12Z")

</div>

Hi All,

The name of the log file that I need to mention in filebeat.yml is **access-202010210000**

I tried putting the following but it does not seem to work. Please help:

filebeat.inputs:

- type: log  
paths:
  - /opt/tables/httpd/instances/https-hap-lok/logs/access-`date +%Y%m%d`"0000"

Thanks

---

<div class="post-metadata">

**Author:** ![zaeemmasood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaeemmasood/32/102383_2.png) [@zaeemmasood](https://discuss.elastic.co/u/zaeemmasood)\
**Post date:** [October 22, 2020, 3:55pm UTC](https://discuss.elastic.co/t/mentioning-path-in-filebeat-yml/253018/2 "2020-10-22T15:55:49Z")

</div>

I noticed that in the log, it displays the filename not as expected:

''  
2020-10-22T11:53:44.827-0400 INFO log/input.go:152 Configured paths: [/opt/tables/httpd/instances/https-hap-lok/logs/access-`date +%Y%m%d`"0000"]  
2020-10-22T11:53:44.827-0400 INFO input/input.go:114 Starting input of type: log; ID: 15116257133981467565  
2020-10-22T11:53:44.827-0400 INFO crawler/crawler.go:106 Loading and starting Inputs completed. Enabled inputs: 1  
2020-10-22T11:53:44.827-0400 DEBUG [input] log/input.go:191 Start next scan  
''

---

<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:** [November 19, 2020, 5:55pm UTC](https://discuss.elastic.co/t/mentioning-path-in-filebeat-yml/253018/3 "2020-11-19T17:55:56Z")

</div>

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