My filter.conf
filter {
prune {
whitelist_names => ["^http_user$"]
}
mutate {
rename => { "http_user" => "username" }
add_field => [ 'custom_id', '0' ]
}
fingerprint {
key => "somekey"
base64encode => true
method => "SHA512"
source => [ "http_user" ]
target => "custom_id"
}
}
and my output.conf
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "my_index_name"
}
stdout {
codec => rubydebug
}
}
In stdout
all entries are printed (however the custom_id
remains 0
and that's why only one entry makes it to elasticsearch