-
-
Save nzvtrk/75a607ce345570420d1a745382f268fb to your computer and use it in GitHub Desktop.
Logstash Mutate Filter for stripping Linux color codes from log files
This file contains hidden or 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
# Get rid of color codes | |
mutate { | |
gsub => ["message", "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", ""] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment