# Using Sidecars to have a multiline ouptut from GELF input

**URL:** <https://community.graylog.org/t/using-sidecars-to-have-a-multiline-ouptut-from-gelf-input/22368>\
**Category:** Graylog Central (peer support)\
**Created:** [January 17, 2022, 8:30pm UTC](https://community.graylog.org/t/using-sidecars-to-have-a-multiline-ouptut-from-gelf-input/22368 "2022-01-17T20:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![allexandre](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@allexandre](https://community.graylog.org/u/allexandre)\
**Post date:** [January 17, 2022, 8:30pm UTC](https://community.graylog.org/t/using-sidecars-to-have-a-multiline-ouptut-from-gelf-input/22368/1 "2022-01-17T20:30:21Z")

</div>

Hello,

I receive logs from docker containers using the native dual logging option with a GELF output that comes with the last versions of docker. I would like to join some of these messages which were multiline at the beginning but are then fragmented by the docker output (seems that there is no docker solution to handle that). Before I was using [logspout](https://github.com/Vincit/logspout-gelf) which was giving me the option to have some multiline function using a regex.

I was wondering if I could do something similar with the sidecar function of Graylog, I tried a bit but didn’t find anything related to a multiline function (which apparently existed in the previous versions of Graylog, reading some old messages on the web.)

Thanks by advance

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [January 18, 2022, 12:49am UTC](https://community.graylog.org/t/using-sidecars-to-have-a-multiline-ouptut-from-gelf-input/22368/2 "2022-01-18T00:49:28Z")

</div>

Hello && Welcome

I might be able to assist you. In this forum a couple community members had same issue.

> [@allexandre](#):
>
> I was wondering if I could do something similar with the sidecar function of Graylog,

One solution was using FileBeat /w GL Sidecar.

[FileBeat-Multiline-Examples](https://www.elastic.co/guide/en/beats/filebeat/current/multiline-examples.html#multiline-examples)

Once you have the sidecar install the rest will be configured through the Web UI.

Here is another post of using multiline configuration with file beat. perhaps that might get you started.

> [@Sidecar Multiline config](https://community.graylog.org/t/sidecar-multiline-config/11156):
>
> Hi! I’ve been working on a workaround for the limitations of the pipeline-grok in terms of multiline messages and I’ve successfully come up with a somewhat hacky solution that at least works in the pipeline simulator. However, as it seems, my Beats sidecar is not even transmitting the multiline messages to GrayLog for further processing, even when disabling all my pipelines and filters, Beats will not send any of the multiline java exceptions I throw at it into GrayLog. My Beats config looks …

Depending on what version your using you can use a Collector as shown below.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/7/7cf1d7de070adf82f99f341e34384db25bfad58a.png)

We do have TAG’s for Multi-line they may help in search as shown below.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/2X/5/5e36c7435329d9b35490c54270f99a0c8a0569a7.png)

Hope that helps

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [February 1, 2022, 12:49am UTC](https://community.graylog.org/t/using-sidecars-to-have-a-multiline-ouptut-from-gelf-input/22368/3 "2022-02-01T00:49:47Z")

</div>

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