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

**URL:** <https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841>\
**Category:** Beats\
**Tags:** filebeat, winlogbeat\
**Created:** [September 7, 2022, 3:01am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841 "2022-09-07T03:01:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [September 7, 2022, 3:01am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/1 "2022-09-07T03:01:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 7, 2022, 3:42am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/2 "2022-09-07T03:42:12Z")

</div>

What does "pull up the logs" mean sorry?

---

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [September 7, 2022, 3:46am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/3 "2022-09-07T03:46:33Z")

</div>

I mean logs are available like this [https://192.168.5.10/api/WindowsEvent?logDuration=3600](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?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 7, 2022, 3:47am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/4 "2022-09-07T03:47:07Z")

</div>

You could use the `httpjson` input in Filebeat.

Check the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-httpjson.html) on how to configure it.

---

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [September 7, 2022, 3:48am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/5 "2022-09-07T03:48:44Z")

</div>

Beauty - Thanks man

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 5, 2022, 5:48am UTC](https://discuss.elastic.co/t/can-we-pull-up-logs-using-web-api-either-through-filebeat-or-logstash/313841/6 "2022-10-05T05:48:46Z")

</div>

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