Basically my pipeline looks like this:
input {
(...) #some input
}
filter {
http {
(...) #http request
}
}
output{
elasticsearch{
(...)
action => "update"
doc_as_upsert => true
}
}
I need http filter to do a particular HTTP request. But nothing more in http filter, I am not reading data back.
Usage of that filter unwanted result is, that fields produced by http filter are being inserted into ELS document which is updated. For example: headers
, body
, @version
, @timestamp
, ...
I tried to use mutate
with remove_field
to get rid of those unnecessary fields, which work for
headers
and body
, but I am left with fields like @version
, @timestamp
which I cannot remove (document will not be updated in ELS) but also do not want them in my document _source
.
Is there a way to perform http filter without adding new fields to the event?