# Filebeat script

**URL:** <https://discuss.elastic.co/t/filebeat-script/215402>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 17, 2020, 3:01am UTC](https://discuss.elastic.co/t/filebeat-script/215402 "2020-01-17T03:01:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fang5826](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@fang5826](https://discuss.elastic.co/u/fang5826)\
**Post date:** [January 17, 2020, 3:01am UTC](https://discuss.elastic.co/t/filebeat-script/215402/1 "2020-01-17T03:01:23Z")

</div>

In filebeat's script, how to create a new event and make it take effect, just like `new_event_block.call()` in logstash's ruby plug-in

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [January 17, 2020, 8:33am UTC](https://discuss.elastic.co/t/filebeat-script/215402/2 "2020-01-17T08:33:54Z")

</div>

Unfortunately, it is not possible to create new events in Filebeat processors. If you need more advanced control over your events, use Logstash.

---

<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:** [February 14, 2020, 8:33am UTC](https://discuss.elastic.co/t/filebeat-script/215402/3 "2020-02-14T08:33:56Z")

</div>

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