# Filebeat and Magento2 reports

**URL:** <https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226>\
**Category:** Beats\
**Created:** [January 19, 2018, 12:05pm UTC](https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226 "2018-01-19T12:05:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiu.tot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergiu.tot/32/26757_2.png) [@sergiu.tot](https://discuss.elastic.co/u/sergiu.tot)\
**Post date:** [January 19, 2018, 12:05pm UTC](https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226/1 "2018-01-19T12:05:06Z")

</div>

Hello guys,

I have a Magento2 instance for which I collect the logs using prospectors in filebeat-5.2.1. This is happening on a docker container based on ubuntu xenial (16.04).

The Magento2 report is a valid json file with a single line, but contain no newline at the end of the string which results in logs not being sent - [https://www.elastic.co/guide/en/beats/filebeat/current/faq.html#newline-character-required-eof](https://www.elastic.co/guide/en/beats/filebeat/current/faq.html#newline-character-required-eof)

Tried with single/multi line, tried changing the close\_timeout and a few other suggestions found online but nothing works so far.

Could you provide some suggestions on how to approach it?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [January 19, 2018, 7:21pm UTC](https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226/2 "2018-01-19T19:21:40Z")

</div>

Problem is, lines are split on newline. The json parsing and multiline filters are applied thereafter.

Given JSON is structured, I would like to beats to not requiring the newline, but just stream through the JSON document, parsing object after object after object. Without requiring newlines, but also supporting pretty printed JSON. This is unfortunately not possible as of now. But we're well aware of this use-case. For this and other common use-cases I would like the filebeat readers to be somewhat chainable, so we can plugin decompression, json, xml, multiline, newline splitting, content splitting on custom pattern in any order required.

Unfortunately I didn't find a ticket, but feel free to open an [enhancement request](https://github.com/elastic/beats/issues).

---

<div class="post-metadata">

**Author:** ![sergiu.tot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergiu.tot/32/26757_2.png) [@sergiu.tot](https://discuss.elastic.co/u/sergiu.tot)\
**Post date:** [January 22, 2018, 9:22am UTC](https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226/3 "2018-01-22T09:22:22Z")

</div>

Hello Steffen,

Thanks for your answer. I just opened an enhancement request: [https://github.com/elastic/beats/issues/6132](https://github.com/elastic/beats/issues/6132)

---

<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 9, 2018, 12:05pm UTC](https://discuss.elastic.co/t/filebeat-and-magento2-reports/116226/4 "2018-02-09T12:05:08Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
