I'd like to tag the logs coming from filebeat with the content of an environment variable, but I need to remove dashes from the environment variable. I've tried this
shipper:
tags: ["agent", ${APPLICATION_NAME//-/}]
but even though it works in bash, it doesn't work in filebeat.
Beats don't use the same semantics as Bash. We don't support these kind of transformations to env variables, I would recommend setting the transformed env variable outside Filebeat, before launching it
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.