# Dynamic name in the path of filebeat

**URL:** https://discuss.elastic.co/t/dynamic-name-in-the-path-of-filebeat/65600
**Category:** Beats
**Tags:** filebeat
**Created:** [November 10, 2016, 7:58am UTC](https://discuss.elastic.co/t/dynamic-name-in-the-path-of-filebeat/65600 "2016-11-10T07:58:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aditya\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aditya_srivastava/32/43287_2.png) [@Aditya\_Srivastava](https://discuss.elastic.co/u/Aditya_Srivastava)
#### Post date: [November 10, 2016, 7:58am UTC](https://discuss.elastic.co/t/dynamic-name-in-the-path-of-filebeat/65600/1 "2016-11-10T07:58:11Z")

</div>

I wanted to give dynamic name in the path section of filebeat ex.  
paths:  
- /var/log/ABC/{hostname}/\*.log

can the hostname field be dynamic???

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [November 10, 2016, 11:58am UTC](https://discuss.elastic.co/t/dynamic-name-in-the-path-of-filebeat/65600/2 "2016-11-10T11:58:27Z")

</div>

You should be able to use `/var/log/*/*.log`

---

<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: [December 8, 2016, 11:58am UTC](https://discuss.elastic.co/t/dynamic-name-in-the-path-of-filebeat/65600/3 "2016-12-08T11:58:56Z")

</div>

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