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......