# Trigger output Exec once if file exists

**URL:** <https://discuss.elastic.co/t/trigger-output-exec-once-if-file-exists/196830>\
**Category:** Logstash\
**Created:** [August 26, 2019, 7:46pm UTC](https://discuss.elastic.co/t/trigger-output-exec-once-if-file-exists/196830 "2019-08-26T19:46:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [August 26, 2019, 11:37pm UTC](https://discuss.elastic.co/t/trigger-output-exec-once-if-file-exists/196830/4 "2019-08-26T23:37:37Z")

</div>

Use a multiline codec on the input filter. Read [this](https://discuss.elastic.co/t/logstash-xml-file-parsing-awkward-splitting-event-problem/174906/4).

---

_[View the full topic](https://discuss.elastic.co/t/trigger-output-exec-once-if-file-exists/196830)._
