Skip to content

Customize JSON formatted syslog messages to have lowercase keys with Syslog-NG #4422

Answered by bazsi
Palezvar asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment, there's no such thing. $(format-json) uses value-pairs and it does have the notion of transforms, but at the moment there are only a limited set of transformations:

add-prefix() -- adds a prefix in front of the key
shift() -- shifts characters left (e.g. removes a number of characters from the front)
repace-prefix() -- change the prefix to something else
shift-levels() -- shift N number of dots leftwards (e.g. shift off entire levels from the key)

I have now opened a pull request to add upper/lower transformations. I recognize this might be too late for you two weeks later, but still maybe it's still interesting.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bazsi
Comment options

Answer selected by Palezvar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants