We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
link:https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-split
Example:
filter { mutate { split => ["hostname", "."] add_field => { "shortHostname" => "%{hostname[0]}" } } mutate { rename => ["shortHostname", "hostname" ] } }
In this example,split's input type is a list,But it must a hash
split's
list
hash
The text was updated successfully, but these errors were encountered:
I'd like to add that older documentation is incorrect.
Per 6.5 documentation, split takes a hash
filter { mutate { split => { "fieldname" => "," } } }
this is incorrect and throws a logstash error. It takes a list as input
filter { mutate { split => [ "fieldname", "," ] } }
Sorry, something went wrong.
No branches or pull requests
link:https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-split
Example:
In this example,
split's
input type is alist
,But it must ahash
The text was updated successfully, but these errors were encountered: