# Triggering Logstash Input

**URL:** <https://discuss.elastic.co/t/triggering-logstash-input/356889>\
**Category:** Logstash\
**Created:** [April 5, 2024, 7:01pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889 "2024-04-05T19:01:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [April 5, 2024, 7:01pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889/1 "2024-04-05T19:01:33Z")

</div>

Hello I am wondering, if there can be a way to allow Logstash input to be triggered by user?

Like for example, I am polling SNMP or HTTP API, and the pollers are set up at their own schedule but if a user wants to initate the polling in real time, would this be possible?

Thanks,  
Erik

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 5, 2024, 8:02pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889/3 "2024-04-05T20:02:11Z")

</div>

You cannot affect the schedule of an snmp externally.

If you want HTTP calls on-demand you could create a pipeline that tails a file (or several variations thereof) and pass events to an http filter to make an API call. Thus an API call happens when the user appends a line to the file.

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [April 8, 2024, 5:27pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889/4 "2024-04-08T17:27:11Z")

</div>

Thanks @Badger

This is interesting, I will try this out.

Should I open a feature request to be able to affect the schedule of a logstash input externally or technically what I am asking for a bit impossible?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [April 8, 2024, 5:54pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889/5 "2024-04-08T17:54:53Z")

</div>

All of the scheduling functionality is in the [rufus](https://github.com/jmettraux/rufus-scheduler) library. logstash just defines a function and gives rufus a cronline telling it when to call it. I don't think there would be much interest in adding additional scheduling functionality to logstash itself. That said it does no harm to open an issue on github, even if it does not result in changes being made.

---

<div class="post-metadata">

**Author:** ![erikg](https://avatars.discourse-cdn.com/v4/letter/e/91b2a8/32.png) [@erikg](https://discuss.elastic.co/u/erikg)\
**Post date:** [April 8, 2024, 5:57pm UTC](https://discuss.elastic.co/t/triggering-logstash-input/356889/6 "2024-04-08T17:57:53Z")

</div>

thanks for the clarification!
