# Is there a way invoke shell script or python script as part of filebeat output or processor

**URL:** <https://discuss.elastic.co/t/is-there-a-way-invoke-shell-script-or-python-script-as-part-of-filebeat-output-or-processor/279252>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 21, 2021, 10:32am UTC](https://discuss.elastic.co/t/is-there-a-way-invoke-shell-script-or-python-script-as-part-of-filebeat-output-or-processor/279252 "2021-07-21T10:32:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naresh\_b](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/naresh_b/32/80468_2.png) [@naresh\_b](https://discuss.elastic.co/u/naresh_b)\
**Post date:** [July 21, 2021, 10:32am UTC](https://discuss.elastic.co/t/is-there-a-way-invoke-shell-script-or-python-script-as-part-of-filebeat-output-or-processor/279252/1 "2021-07-21T10:32:28Z")

</div>

As part of LSF accounting file monitoring, need some processing(parsing job\_finish event) for each event entry using LSF API (python or c). Want to keep this agent as simple as possible, hence considering to use only filebeat not logstash.

Is there any way to invoke script (shell/python) as part of filebeat output or processor.

Thanks, Naresh

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [July 22, 2021, 12:24pm UTC](https://discuss.elastic.co/t/is-there-a-way-invoke-shell-script-or-python-script-as-part-of-filebeat-output-or-processor/279252/2 "2021-07-22T12:24:59Z")

</div>

The only scripting language u can use is JavaScript. See [Script Processor | Filebeat Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/processor-script.html).

---

<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:** [August 19, 2021, 2:25pm UTC](https://discuss.elastic.co/t/is-there-a-way-invoke-shell-script-or-python-script-as-part-of-filebeat-output-or-processor/279252/3 "2021-08-19T14:25:22Z")

</div>

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