The REGISTRY_LOG_FILE_PATH is not read in, so it defaults to the fake.log. However, environment variables are read in fine anywhere else in the file, such as FILEBEAT_TYPE. I haven't been able to find any examples of an input path specified via Env. Vars, is this supported?
I've just tested this and it worked for me with the same exact settings, could you please give more details on your filebeat version, os version and how you launch filebeat (with the env variable)?
I have the REGISTRY_LOG_FILE_PATH and FILEBEAT_TYPE set in my terminals environment. I launch Filebeat with sudo ./filebeat -e -c boundless-registry.yml -d "publish"
I think you have to add -E parameter to sudo, env vars are not carried over to filebeat with your current command:
-E, --preserve-env
Indicates to the security policy that the user wishes to preserve their existing environment vari‐
ables. The security policy may return an error if the user does not have permission to preserve
the environment.
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.