Skip to content
Snippets Groups Projects
Verified Commit 1dce1067 authored by Vincent Sellier's avatar Vincent Sellier
Browse files

logstash: explicitely match not number facility ids

because \d is not working for field values in string like "4"

Related to T3705
parent ae1e994e
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ filter {
}
}
} else {
if [syslog][facility] !~ /^\d+$/ {
if [syslog][facility] =~ /[A-Za-z]+/ {
mutate {
rename => { "[syslog][facility]" => "[syslog][facility_name]" }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment