Closed mfornasa closed 7 years ago
That should work. I'll test it myself and get back to you.
More info. I tried to put the value "invalid" in the LOG_FORMAT
var, and the container refuses to start:
2017-01-26 12:15:17 +0000 [error]: config error file="/fluentd/etc/fluent.conf" error="Invalid log_format invalid must be text, json or json_merge"
When reverting back to text
, I get the JSON log back in Sumologic. I am using the hosted service.
ah, i see the issue.
I believe by adding the below to source.containers.conf it should set the _sumo_metadata field correctly for the output plugin.
log_format "#{ENV['LOG_FORMAT']}"
Can you please let me know if you still have issues?
Works now.
Maybe I'm doing this wrong... I tried to apply
LOG_FORMAT=text
in the daemonset sample definintion but the logs are still sent in JSON.