# Filebeat Input Dynamic file path

**URL:** https://discuss.elastic.co/t/filebeat-input-dynamic-file-path/377379
**Category:** Beats
**Tags:** filebeat
**Created:** [April 22, 2025, 2:23pm UTC](https://discuss.elastic.co/t/filebeat-input-dynamic-file-path/377379 "2025-04-22T14:23:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mdamera905](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mdamera905](https://discuss.elastic.co/u/mdamera905)
#### Post date: [April 22, 2025, 2:23pm UTC](https://discuss.elastic.co/t/filebeat-input-dynamic-file-path/377379/1 "2025-04-22T14:23:02Z")

</div>

I have a requirement to monitor dynamic log path using Elastic.Log Path is as follows. Can you please help whats the file path I should be included in the filebeat.yml file ?

Log Name- C:\appname\data\logs\appname\_a123-a1-001 Data Pipe New\_12345678.log  
here a123 is dynamic  
Can you suggust how filebeat input should be ?

I tried this but did not work -' C:\appname\data\logs\appname\_\*'
