Closed ghost closed 7 years ago
I use the elktail format: --format "%@timestamp %level %application.name %message %metadata"
--format
sometimes the metadata exists, and is properly printed, but sometimes it's missing and in this case, elktail prints out %metadata:
metadata
%metadata
2016-11-03T09:01:20.850Z info @hpe/quixy test no metadata %metadata 2016-11-03T09:01:35.560Z info @hpe/quixy test map[id:123 blah:blubb]
is there a way to make elktail print out the value if it exists, but discard the variable name if it doesn't?
It's not possible right now, however, discarding the variable name seems like a reasonable choice in this situation. I will include this feature in next release.
thanks
I use the elktail format:
--format
"%@timestamp %level %application.name %message %metadata"sometimes the
metadata
exists, and is properly printed, but sometimes it's missing and in this case, elktail prints out%metadata
:is there a way to make elktail print out the value if it exists, but discard the variable name if it doesn't?