# Filebeat: send data from a dynamic log + static file version.txt in one event

**URL:** https://discuss.elastic.co/t/filebeat-send-data-from-a-dynamic-log-static-file-version-txt-in-one-event/343033
**Category:** Beats
**Tags:** filebeat
**Created:** [September 14, 2023, 9:27am UTC](https://discuss.elastic.co/t/filebeat-send-data-from-a-dynamic-log-static-file-version-txt-in-one-event/343033 "2023-09-14T09:27:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![john123](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@john123](https://discuss.elastic.co/u/john123)
#### Post date: [September 14, 2023, 9:27am UTC](https://discuss.elastic.co/t/filebeat-send-data-from-a-dynamic-log-static-file-version-txt-in-one-event/343033/1 "2023-09-14T09:27:00Z")

</div>

Hi, we have a dynamic log 'app.log' and a static file version.txt with th version of the app.  
We have to send both as a single event with the purpose to have a trace of the errors in function of changing version of the app.  
Do you have something in mind how to add the version.txt single value to the 'app.log' stream.  
I found that we can use add\_filed to append a custom field to the filebeat event, but how to add to this field the value of version.txt file.

---

<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: [October 12, 2023, 11:27am UTC](https://discuss.elastic.co/t/filebeat-send-data-from-a-dynamic-log-static-file-version-txt-in-one-event/343033/2 "2023-10-12T11:27:21Z")

</div>

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