# How to automatically change the file name output by Auditbeat.yml

**URL:** https://discuss.elastic.co/t/how-to-automatically-change-the-file-name-output-by-auditbeat-yml/225529
**Category:** Beats
**Tags:** auditbeat
**Created:** [March 29, 2020, 2:19am UTC](https://discuss.elastic.co/t/how-to-automatically-change-the-file-name-output-by-auditbeat-yml/225529 "2020-03-29T02:19:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ryo\_Takeuchi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryo_takeuchi/32/65250_2.png) [@Ryo\_Takeuchi](https://discuss.elastic.co/u/Ryo_Takeuchi)
#### Post date: [March 29, 2020, 2:19am UTC](https://discuss.elastic.co/t/how-to-automatically-change-the-file-name-output-by-auditbeat-yml/225529/1 "2020-03-29T02:19:53Z")

</div>

Is it possible to set variable information (date information etc ...) in the file name with the File option of Configure the output? For example, filename\_yyyymmdd\_hhmmss.log etc ...  
Or is there any other way to change the file name dynamically when outputting the collected logs to a file?

---

<div class="post-metadata">

### Author: ![kasra](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kasra](https://discuss.elastic.co/u/kasra)
#### Post date: [April 4, 2020, 8:55am UTC](https://discuss.elastic.co/t/how-to-automatically-change-the-file-name-output-by-auditbeat-yml/225529/2 "2020-04-04T08:55:00Z")

</div>

yes you can  
[https://www.elastic.co/guide/en/beats/auditbeat/current/rename-fields.html](https://www.elastic.co/guide/en/beats/auditbeat/current/rename-fields.html)  
and also if you ship your logs first into logstash you can apply your changes and your possible enrichments too

---

<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: [April 25, 2020, 8:55am UTC](https://discuss.elastic.co/t/how-to-automatically-change-the-file-name-output-by-auditbeat-yml/225529/3 "2020-04-25T08:55:10Z")

</div>

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