We need to dynamically change the value of a field. Following this pattern does not work:
in beats 5.0 one can also overwrite any setting from command line via -E flag. For example:
./countbeat -c countbeat.yml --configtest -E name=otherhost
Get an error pertaining to being unable to find template file. To get round this I added
-path-config /etc/metricbeat but now it just hangs (a basic config test returns OK though). I also need to change the working directory to the metricbeats
bin directory. Any suggestions?