logstash-plugins / logstash-filter-mutate

Apache License 2.0
16 stars 75 forks source link

gsub cannot handle replacing a single backslash using expected syntax #133

Open TylerHilsabeckCVC opened 5 years ago

TylerHilsabeckCVC commented 5 years ago

mutate{ gsub => ["message", "//", ""] } This will fail upon config check with the following error. The given configuration is invalid. Reason: Expected one of #, {, ,, ] at line 10, column 32 (byte 159) after filter{ mutate{ gsub => ["message", "\\", " Workaround is mutate{ gsub => ["message", "[//]{1}", ""] }