# Dynamic input file name

**URL:** <https://discuss.elastic.co/t/dynamic-input-file-name/25951>\
**Category:** Logstash\
**Created:** [July 20, 2015, 9:21pm UTC](https://discuss.elastic.co/t/dynamic-input-file-name/25951 "2015-07-20T21:21:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jigarpatel13533](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jigarpatel13533/32/18675_2.png) [@jigarpatel13533](https://discuss.elastic.co/u/jigarpatel13533)\
**Post date:** [June 9, 2017, 5:30am UTC](https://discuss.elastic.co/t/dynamic-input-file-name/25951/9 "2017-06-09T05:30:24Z")

</div>

> [@magnusbaeck](#):
>
> It's not clear why this can't be automated. It's also not clear why you need to specify an exact filename rather than using "\*.log" or some other filename pattern that matches all log files, past an future. Logstash will pick up newly created files with matching names within seconds.

Please refer below post. You'll get entire problem. Need your assistance.

> [@Using wildcard character in logstash input](https://discuss.elastic.co/t/using-wildcard-character-in-logstash-input/88585):
>
> Hi, I am using logstash 2.1 in Windows Server 2008 R2 OS. (Version Corrected) I have some log files at some another server, and I am taking them as input for my logstash. Shared Path : \\MIB030065\share2\Statoil-logs\Sharepoint/ST-W2284-20170607-0841.log Now if I writing below in config file, it's discovering the changes (happening real time) in the same file. input{ file{ type =\> "logs" path =\> ["\\MIB030065\share2\Statoil-logs\Sharepoint/ST-W2284-20170607.log"]\* codec =\> multiline { …

Thanks in advance, Magnus !

---

_[View the full topic](https://discuss.elastic.co/t/dynamic-input-file-name/25951)._
