# Add environment variables on filebeat start

**URL:** https://discuss.elastic.co/t/add-environment-variables-on-filebeat-start/152855
**Category:** Beats
**Tags:** filebeat
**Created:** [October 17, 2018, 1:58pm UTC](https://discuss.elastic.co/t/add-environment-variables-on-filebeat-start/152855 "2018-10-17T13:58:00Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![leslie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leslie/32/77605_2.png) [@leslie](https://discuss.elastic.co/u/leslie)
#### Post date: [October 19, 2018, 5:32am UTC](https://discuss.elastic.co/t/add-environment-variables-on-filebeat-start/152855/3 "2018-10-19T05:32:15Z")

</div>

I met the same problem as [Filebeat Windows | Time sync](https://discuss.elastic.co/t/filebeat-windows-time-sync/121513/5) using filebeat 6.4.2, so i downgrade to 6.0.0 .

the error is

```
2018-10-19T13:28:54+08:00 CRIT Exiting: missing field accessing 'fields.ip'

```

I want IP for some modules,however adding IP for every event is ok.

---

_[View the full topic](https://discuss.elastic.co/t/add-environment-variables-on-filebeat-start/152855)._
