# How to input the dateType path about log file in logstash

**URL:** <https://discuss.elastic.co/t/how-to-input-the-datetype-path-about-log-file-in-logstash/92186>\
**Category:** Logstash\
**Created:** [July 7, 2017, 1:15am UTC](https://discuss.elastic.co/t/how-to-input-the-datetype-path-about-log-file-in-logstash/92186 "2017-07-07T01:15:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0314e7ff87c297426a9e](https://avatars.discourse-cdn.com/v4/letter/0/a3d4f5/32.png) [@0314e7ff87c297426a9e](https://discuss.elastic.co/u/0314e7ff87c297426a9e)\
**Post date:** [July 7, 2017, 1:15am UTC](https://discuss.elastic.co/t/how-to-input-the-datetype-path-about-log-file-in-logstash/92186/1 "2017-07-07T01:15:43Z")

</div>

i want to get log data in ds\_20170707.log  
log file name contains the date...  
for example )  
ds\_20170705.log  
ds\_20170706.log  
ds\_20170707.log  
....  
so..  
input {  
file {  
path =\> ["/ ~~/~~~~~ /ds\_%{+YYYYMMdd}.log"]

}  
this form can not get log data...

but path =\> [" ~~~~~ /ds\_20170707.log"] is successsssssssssssss ㅠㅠ plz help me

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 11, 2017, 2:59pm UTC](https://discuss.elastic.co/t/how-to-input-the-datetype-path-about-log-file-in-logstash/92186/2 "2017-07-11T14:59:30Z")

</div>

Why not just use a wildcard like ds\_\*.log in the input section?

---

<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 8, 2017, 3:00pm UTC](https://discuss.elastic.co/t/how-to-input-the-datetype-path-about-log-file-in-logstash/92186/3 "2017-08-08T15:00:11Z")

</div>

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