I am trying to add a custom _id
field as follows:
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"
document_id => "%{custom_id}"
}
stdout {
codec => rubydebug
}
}
However i do not want custom_id
to make it to elasticsearch
.
Is there a way to go about it?