How to generate only events in output

I am using HTTP as input and elastic search as output.

My requirement is to generate only events in output and we don't need to get data in output.

How can I achieve this?

Below is my conf file

input {
http_poller {
urls => {
soap_request => {
method => post
url => "https://xyz.com"
headers => {
"Content-Type" => "text/xml; charset=utf-8"
"Action" => "http://xml123.com"
"Authorization" => "Basic xxxxxxxx"
}
body => ''
}
}
request_timeout => 60
interval => 60
codec => "plain"
}
}
filter{

}

output {
stdout { codec => rubydebug }
elasticsearch {
action => "index"
hosts => "127.0.0.1:9200"
index => "header-test"
workers => 1
}
}

I am getting JSON response from HTTP input as below.
{

key1 : Value1
key2: Value2
key3 : Value3

}

I Just want to get key1,key2,key3 as output, not required data.

Please help me...
Thanks in Advance......

Not quite sure what you are asking, do you have an example data set that was ingested? If there are fields being created that you do not want, in your filter section, using nearly any filter, you can use the remove_field function.

filter {
  mutate {
    remove_field => "fieldname"
  }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.