# Can Promtail capture log as a block?

**URL:** <https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401>\
**Category:** Grafana Loki\
**Created:** [March 12, 2021, 10:48am UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401 "2021-03-12T10:48:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryantlin](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bryantlin](https://community.grafana.com/u/bryantlin)\
**Post date:** [March 12, 2021, 10:48am UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401/1 "2021-03-12T10:48:57Z")

</div>

Hi,

I have log data that looks like this:  
1/1/2021 10:01:23 AM Memory  
1/1/2021 10:01:23 AM 2300 Mb  
1/1/2021 10:01:23 AM 23%  
1/1/2021 10:01:13 AM Memory  
1/1/2021 10:01:13 AM 2310 Mb  
…

As you can see, the information I want to capture are in every 3 separate lines. Is it possible to get the 3 values as one “group” so I can display on Grafana?

Thank you!

---

<div class="post-metadata">

**Author:** ![wlargou](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/wlargou/32/14374_2.png) [@wlargou](https://community.grafana.com/u/wlargou)\
**Post date:** [March 12, 2021, 10:20pm UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401/2 "2021-03-12T22:20:04Z")

</div>

Hi,

As of Loki 2.0, i would suggest you check the multiline parsing stages.

Good Luck

---

<div class="post-metadata">

**Author:** ![bryantlin](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bryantlin](https://community.grafana.com/u/bryantlin)\
**Post date:** [March 12, 2021, 11:10pm UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401/3 "2021-03-12T23:10:21Z")

</div>

Thanks @wlargou. I’ve already used it but it doesn’t seem to achieve the way I want so I was wondering if there is any alternative.

Thanks again.

---

<div class="post-metadata">

**Author:** ![bryantlin](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bryantlin](https://community.grafana.com/u/bryantlin)\
**Post date:** [March 13, 2021, 5:30pm UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401/4 "2021-03-13T17:30:26Z")

</div>

hi @wlargou, I am wondering if you happen to know how to put label(s) (with the same timestamp) as legend on a dashboard? Data source is Loki or “Prometheus-Loki”.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [March 13, 2022, 5:30pm UTC](https://community.grafana.com/t/can-promtail-capture-log-as-a-block/44401/5 "2022-03-13T17:30:49Z")

</div>

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