[solved] Why is $HOSTNAME not replaced with its content when using in global tags?

I just checked and it works for me in either case. Double check that those environment variables are set when running without --test, don’t forget that if it is running as a service it will have a different environment.