# Journalbeat didn't see messages

**URL:** <https://discuss.elastic.co/t/journalbeat-didnt-see-messages/180824>\
**Category:** Beats\
**Tags:** journalbeat\
**Created:** [May 13, 2019, 1:49pm UTC](https://discuss.elastic.co/t/journalbeat-didnt-see-messages/180824 "2019-05-13T13:49:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Lemsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_lemsky/32/43286_2.png) [@John\_Lemsky](https://discuss.elastic.co/u/John_Lemsky)\
**Post date:** [May 13, 2019, 1:49pm UTC](https://discuss.elastic.co/t/journalbeat-didnt-see-messages/180824/1 "2019-05-13T13:49:53Z")

</div>

Journalbeat doesn't send messages from journald into Logstash. In debug logs, only error I see:

```auto
Error while reading event: failed to get realtime timestamp: 99

```

According to [https://github.com/elastic/beats/issues/11933](https://github.com/elastic/beats/issues/11933), it means what in journald there are no new events. But if I launch journalctl I can clearly see them.

Any thoughts about the problem or how I can dig it?

> **Versions**
>
> journalbeat version 6.7.2 (amd64), libbeat 6.7.2  
> systemd 237  
> Ubuntu 18.04

---

<div class="post-metadata">

**Author:** ![John\_Lemsky](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_lemsky/32/43286_2.png) [@John\_Lemsky](https://discuss.elastic.co/u/John_Lemsky)\
**Post date:** [May 14, 2019, 11:41am UTC](https://discuss.elastic.co/t/journalbeat-didnt-see-messages/180824/2 "2019-05-14T11:41:11Z")

</div>

After some tracing, I discover strange behavior.

Journalbeat discover all files in /var/log/journal/5df69cd93d052ec89c9ab8615518ceb8 and started to open them one by one.  
But only 4096 bytes are mapped into memory, although fstat call returns right st\_size for files.  
Right after 4096 bytes from memory is cleaned.

Why Journalbeat can open a file, but not able mmap him into memory?

> **Trace**
>
> 20788 openat(AT\_FDCWD, "/var/log/journal/5df69cd93d052ec89c9ab8615518ceb8/system@97026089824948579ec654741475c6fd-0000000000000001-000586b78ced0f8b.journal", O\_RDONLY|O\_CLOEXEC) = 7\</var/log/journal/5df69cd93d052ec89c9ab8615518ceb8/system@97026089824948579ec654741475c6fd-0000000000000001-000586b78ced0f8b.journal\>
> 
> 20788 fstat(7\</var/log/journal/5df69cd93d052ec89c9ab8615518ceb8/system@97026089824948579ec654741475c6fd-0000000000000001-000586b78ced0f8b.journal\>, {st\_mode=S\_IFREG|0640, st\_size=100663296, ...}) = 0
> 
> 20788 mmap(NULL, 4096, PROT\_READ, MAP\_SHARED, 7\</var/log/journal/5df69cd93d052ec89c9ab8615518ceb8/system@97026089824948579ec654741475c6fd-0000000000000001-000586b78ced0f8b.journal\>, 0) = 0x7f46f95c0000
> 
> 20788 munmap(0x7f46f95c0000, 4096) = 0
> 
> 20788 close(7\</var/log/journal/5df69cd93d052ec89c9ab8615518ceb8/system@97026089824948579ec654741475c6fd-0000000000000001-000586b78ced0f8b.journal\>) = 0

---

<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:** [November 4, 2022, 7:07am UTC](https://discuss.elastic.co/t/journalbeat-didnt-see-messages/180824/3 "2022-11-04T07:07:38Z")

</div>


