# Module variable cannot be overriden

**URL:** <https://discuss.elastic.co/t/module-variable-cannot-be-overriden/113447>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 28, 2017, 1:08pm UTC](https://discuss.elastic.co/t/module-variable-cannot-be-overriden/113447 "2017-12-28T13:08:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitriy\_Parkhonin](https://avatars.discourse-cdn.com/v4/letter/d/22d042/32.png) [@Dmitriy\_Parkhonin](https://discuss.elastic.co/u/Dmitriy_Parkhonin)\
**Post date:** [December 28, 2017, 1:08pm UTC](https://discuss.elastic.co/t/module-variable-cannot-be-overriden/113447/1 "2017-12-28T13:08:29Z")

</div>

Hi!  
I'm trying to create a new FileBeat (6.1.0) module in the following way:

modules.d\marina.yml:  
- module: marina  
dbadicts:  
enabled: true  
var.myEnv: **target**

module\marina\dbadicts\manifest.yml:  
module\_version: "1.0"  
var:  
- name: **myEnv**  
default: **none**  
- name: paths  
default:  
- "E:\Sources\marina\server\{{.myEnv}}\logs\LocalMarina.log"

When starting the FileBeat, I can see in its output:  
2017/12/28 12:51:12.263410 cfgfile.go:143: DBG [cfgfile] Load config from file: E:\Tools\filebeat-6.1.0-windows-x86\_64\modules.d\marina.yml  
2017/12/28 12:51:12.264410 reload.go:170: DBG [cfgfile] Number of module configs found: 1  
2017/12/28 12:51:12.265410 reload.go:198: DBG [cfgfile] Remove module from stoplist: 5549035247416958606  
2017/12/28 12:51:12.266410 reload.go:203: DBG [cfgfile] Add module to startlist: 5549035247416958606  
2017/12/28 12:51:12.268410 processor.go:49: DBG [processors] Processors:  
2017/12/28 12:51:12.269410 config.go:178: DBG [prospector] recursive glob enabled  
2017/12/28 12:51:12.270410 prospector.go:120: DBG [prospector] exclude\_files: [(?-s:.)gz(?-m:$) (?-s:.)zip]. Number of stats: 0  
2017/12/28 12:51:12.271411 prospector.go:141: DBG [prospector] Prospector with previous states loaded: 0  
**2017/12/28 12:51:12.271411 prospector.go:111: DBG [prospector] File Configs: [E:\Sources\marina\server\none\logs\LocalMarina.log]**

Why FileBeat replaces {{.myEnv}} with **none**?

UPD. Sorry for wrong identation in the config files - the forum's editor doesn't work properly in my Chrome, I suppose.

UPD2. Note that I actually CAN override a variable - it works for _var.paths_, for example. But when the _var.paths_ contains a reference to another variable that is overriden - it doesn't work properly.

---

<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:** [January 25, 2018, 1:08pm UTC](https://discuss.elastic.co/t/module-variable-cannot-be-overriden/113447/2 "2018-01-25T13:08:50Z")

</div>

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