Skip to content

Instantly share code, notes, and snippets.

@stevendeboer
Last active December 28, 2015 00:09
Show Gist options
  • Save stevendeboer/7411454 to your computer and use it in GitHub Desktop.
Save stevendeboer/7411454 to your computer and use it in GitHub Desktop.
Using anonymize filter to add checksum.
# Add field which is composed of multiple source fields.
filter {
mutate {
add_field => [ "hash", "%{field1}/%{field2}/%{field3}" ]
}
anonymize {
algorithm => "SHA1"
fields => [ "hash" ]
key => "keyvalue"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment