Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TylerHilsabeckCVC opened this issue Apr 3, 2019 · 0 comments

Comments

@TylerHilsabeckCVC
Copy link

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}", ""] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant