Hi.
I describe specific log file in the config as it's written in the docs:
journalbeat.inputs:
- paths:
- "/var/log/syslog"
This file is present, but Journalbeat can't open it for some reason:
авг 24 15:53:29 computer journalbeat[28297]: 2020-08-24T15:53:29.469+0300 INFO instance/beat.go:419 journalbeat stopped.
авг 24 15:53:29 computer journalbeat[28297]: 2020-08-24T15:53:29.469+0300 ERROR instance/beat.go:951 Exiting: error creating reader for journal: reader.go:120: failed to open journal file /var/log/syslog (path=/var/log/syslog)
авг 24 15:53:29 computer journalbeat[28297]: failed to open journals in paths ["/var/log/syslog"]: bad message
авг 24 15:53:29 computer journalbeat[28297]: Exiting: error creating reader for journal: reader.go:120: failed to open journal file /var/log/syslog (path=/var/log/syslog)
авг 24 15:53:29 computer journalbeat[28297]: failed to open journals in paths ["/var/log/syslog"]: bad message
What's wrong? How to work with specific files?