# Adding extra field in filebeat

**URL:** https://discuss.elastic.co/t/adding-extra-field-in-filebeat/327534
**Category:** Elasticsearch
**Created:** [March 13, 2023, 9:08am UTC](https://discuss.elastic.co/t/adding-extra-field-in-filebeat/327534 "2023-03-13T09:08:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gyrao\_72](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gyrao_72/32/108254_2.png) [@gyrao\_72](https://discuss.elastic.co/u/gyrao_72)
#### Post date: [March 13, 2023, 9:08am UTC](https://discuss.elastic.co/t/adding-extra-field-in-filebeat/327534/1 "2023-03-13T09:08:29Z")

</div>

```auto
filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.

- type: log

# Change to true to enable this input configuration.
enabled: true

# Paths that should be crawled and fetched. Glob based paths.
paths:
   - {some path}
fields:
   target_index: import-export-logger
   build_version: $build_version

```

Here I want to add **build\_version** in the fields. My build\_version is stored in a file on each server.

Can filebeat read the file and add build\_version in the field?

---

<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 10, 2023, 9:09am UTC](https://discuss.elastic.co/t/adding-extra-field-in-filebeat/327534/2 "2023-04-10T09:09:14Z")

</div>

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