Don't override elasticsearch index with null values from logstash pipeline

Hi All

Im updating an index in logstash pipeline,
it's working right, but I need not override the fields with null values.

how can i do this?

That is my config

elasticsearch {
    hosts => ["HOST"]
    index => "index-test-%{+yyyy.MM.dd}"
    document_id => "%{[taskID]}"
    action => "update"
    doc_as_upsert => true 
}

Thanks

If you want to remove null fields from the event that you are upserting then you might be able to use the blacklist_values option of a prune filter.