In which 'clustername' is an alias for a certain script. I want to use the output of this script("kafkadev3") as a field in my Filebeat, the config may look like this:
We currently don't support to run arbitrary commands in Beats, and in general we try to avoid running commands at all. An option you have is to pass this cluster name value as an environment variable. Environment variables can be used in Beats configuration files.
Yeah. That's the workaround I use right now. I use a script to export the value as an environment variable and then start Filebeat. Thanks for the help!
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.