Hi everybody,
I am using:
input {
jdbc {
}
}
filter {
elasticsearch {
remove_field => ["index_type"]
}
}
output {
elasticsearch{
index => "myindex"
document_type => "%{index_type}"
document_id => "%{customerno}"
}
}
I have a field in the input that has the name of the document_type, but I don't want that this field come in the document. If I use the filter to delete the field "index_type" I can not use it in the output to setting the document_type.
In resum I don't want the field in the domucument_source but I need it to configure the document_type
How I can do this?
Thanks a lot for your help!!
Regards.
Jorge von Rudno