Answer the question
In order to leave comments, you need to log in
How to hide part of a message in ELK?
Is there a way in ELK to hide the password part of the message? for example change by regular expression.
I know that you can do something like this through logstash filters
if [action] == "login" {
mutate { remove_field => "secret" }
}
Answer the question
In order to leave comments, you need to log in
In general, you need to add if in the filter with a regular expression and, through the mutate module, replace the regular expression inside this message.
Example:
if [message] =~ "statement: ((?i)alter|(?i)create) ((?i)user|(?i)role)" {
mutate {
gsub => [
"message", "'.*'", "'******'"
]
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question