i am using filebeat 6.0.0 which without add_host_metadata processor; and my os is Windows.
now i hope to add an IP field to the filebeat result of all modules, but i don't want to set an Environment Variable globally. Do I have any other way to do that?
i am trying start filebeat with filebeat.exe -E "IP=192.0.0.100", and modules config files like
type: log
paths:
{{ range $i, $path := .paths }}
- {{$path}}
{{ end }}
fields:
ip: "${IP}"
Then the filebeat starts failed. Can I set new environment variables with -E argument ?
PS. I have many servers to run filebeat, so i prefer to set the same configuration files on different servers.
This clearly looks like a bug. No idea if this is resolved in 6.4. Can you check with 6.4.2 and open an bug report if you can reproduce your findings with 6.4?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.