Created
April 22, 2016 08:59
-
-
Save kroepke/27de3bfa2123c5b9ef091888068526cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule "static mapping" | |
when has_field("status_code") | |
then | |
let mapping = {`404`: "not found", `500`: "server error"}; | |
set_field("status_code", mapping[to_string($message.status_code)]); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's alluded to in Graylog2/graylog-plugin-pipeline-processor#27