Can we pull up logs using Web API either through filebeat or logstash?

Hi Team,

I need to pull up the logs using web API; can someone suggest a method by which I could pull up the logs using web api?

Or do I need to write a script and then pull up the logs?

TIA
Blason R

What does "pull up the logs" mean sorry?

I mean logs are available like this https://192.168.5.10/api/WindowsEvent?logDuration=3600

And the logs are then available in json format. Hence wondering if any way available where I could pull up the logs directly using that URL?

You could use the httpjson input in Filebeat.

Check the documentation on how to configure it.

2 Likes

Beauty - Thanks man