Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"failed to get realtime timestamp" #11933

Closed
MostFrabjous opened this issue Apr 25, 2019 · 5 comments
Closed

"failed to get realtime timestamp" #11933

MostFrabjous opened this issue Apr 25, 2019 · 5 comments

Comments

@MostFrabjous
Copy link

For confirmed bugs, please report:

After a fresh install of journalbeat, I don't recieve any logs on remote server and get a log of ERROR logentries from journalbeat.

  • Install journalbeat via rpm (7.0.0)
  • Configure journalbeat
journalbeat.inputs:
  - paths: []
  seek: cursor
  include_matches: [systemd.unit=docker]

  fields:
    env: test

output.logstash:
  hosts: ["$LOG_HOST_FQDN:5044"]

processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~

After starting a lot of these errors are logged:

2019-04-25T12:48:30.890+0200    ERROR   [input] input/input.go:169      Error while reading event: failed to get realtime timestamp: 99 {"id": "78d2e578-445e-4dd9-b36a-98e9ebf7f60e"}
@MostFrabjous
Copy link
Author

MostFrabjous commented Apr 25, 2019

This works if I remove include_matches: [systemd.unit=docker] --> may be closed

@kvch
Copy link
Contributor

kvch commented May 6, 2019

When there is no new entry to read systemd returns this error. It does not lead to any data loss on user's side.
We need to detect if there is no new messages and suppress this error when it's not appropiate.

@zhanglei216
Copy link

zhanglei216 commented Jul 7, 2019

you should change this line of configurations file.

""
include_matches: [systemd.unit=docker.service]
""
or
""
include_matches:
- systemd.unit docker.service
""

@mvanderlee
Copy link

For me this was a permission issue. I ran journalbeat in docker using docker.elastic.co/beats/journalbeat:7.2.0 and forgot to run the container as user = root.
After that it worked great.

@urso
Copy link

urso commented Jan 17, 2020

Looks like the issue has been resolved. Thank you for sharing how you fixed it.

@urso urso closed this as completed Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants