# Running script from logstash

**URL:** <https://discuss.elastic.co/t/running-script-from-logstash/218731>\
**Category:** Logstash\
**Created:** [February 11, 2020, 8:52am UTC](https://discuss.elastic.co/t/running-script-from-logstash/218731 "2020-02-11T08:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Mandal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_mandal/32/57073_2.png) [@Sagar\_Mandal](https://discuss.elastic.co/u/Sagar_Mandal)\
**Post date:** [February 11, 2020, 8:52am UTC](https://discuss.elastic.co/t/running-script-from-logstash/218731/1 "2020-02-11T08:52:04Z")

</div>

Hi Team,

Quick Question, Can we run any script that is present in our system, from logstash configuration output section?

Thanks

---

<div class="post-metadata">

**Author:** ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)\
**Post date:** [February 11, 2020, 9:03am UTC](https://discuss.elastic.co/t/running-script-from-logstash/218731/2 "2020-02-11T09:03:29Z")

</div>

Hi

Check the [documentation](https://www.elastic.co/guide/en/logstash/current/output-plugins.html) for `output{}` plugins. Hint: `exec` is your friend.

Alternatively, you can also execute a script in your system under the `filter{}` section, using the `ruby{}` filter plugin.

Hope this helps.

---

<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:** [March 10, 2020, 9:03am UTC](https://discuss.elastic.co/t/running-script-from-logstash/218731/3 "2020-03-10T09:03:31Z")

</div>

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