HTTP LogStash Request

Hi -

I have a webservice URL (something like this "http://149.212.194.252:8001/ths/ResourceMonitor")
Where I'd get the output in the form of XML nodes, I need to read this data for every second and push it to ELK.
Would someone please help me out. Thanks !

Maybe you could look at logstash http_poller input. https://www.elastic.co/guide/en/logstash/current/plugins-inputs-http_poller.html.

Thanks @immavalls.

Its works with the below configuration:

input {
http_poller {
urls => {
test1 => "http://localhost:8000/ssh/Monitor"
}
schedule => { cron => "* * * * * UTC"}
codec => "json"
}
filter {
json {
source => "message"
}
}
output {
stdout {
codec => rubydebug
}

The Output am receiving at the ELK as message is as below:

Could you please let me know how do I convert this to JSON and parse the values with mappings ?

Thanks for your help.

It looks like you actually get an XML in your message. Can you try with logstash's xml plugin?

filter {
  xml {
    source => "message"
  }
}

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