# Variable length log

**URL:** <https://discuss.elastic.co/t/variable-length-log/224702>\
**Category:** Logstash\
**Created:** [March 23, 2020, 5:43pm UTC](https://discuss.elastic.co/t/variable-length-log/224702 "2020-03-23T17:43:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 23, 2020, 7:10pm UTC](https://discuss.elastic.co/t/variable-length-log/224702/2 "2020-03-23T19:10:25Z")

</div>

I would use ruby and a .scan function. See [here](https://discuss.elastic.co/t/grok-pattern-data-not-giving-all-matches-from-the-line/140468/2) for an example.

---

_[View the full topic](https://discuss.elastic.co/t/variable-length-log/224702)._
