These are chat archives for mp911de/logstash-gelf

1st
Nov 2017
BenLeino
@BenLeino
Nov 01 2017 15:01
Hi, I was wondering how I can inject an environment variable within the gelf configuration for log4j2. The following doesn't work (see "com.iamfromenv"):
<Field name="environment" literal="${env:com.iamfromenv}" />
Mark Paluch
@mp911de
Nov 01 2017 16:37
@BenLeino I'm not too familiar with environment lookups. I think you need to use $${…}, see https://logging.apache.org/log4j/2.0/manual/lookups.html