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

error reading log lines: error reading file system events: failed to read inotify events: interrupted system call #164

Open
hansellb opened this issue Nov 4, 2021 · 1 comment

Comments

@hansellb
Copy link

hansellb commented Nov 4, 2021

Hello @fstab

I have a Spring based application that uses log4j2 to write log files using an appender like this one:

<RollingRandomAccessFile append="true"
                                            name="StatusLogService"
                                            fileName="./Status.log"
                                            filePattern="./Status.log.%d{yyyy-MM-dd-HH}">
  <PatternLayout>
    <Pattern>%-5p %m%n</Pattern>
  </PatternLayout>
  <Policies>
    <TimeBasedTriggeringPolicy interval="1" />
  </Policies>
</RollingRandomAccessFile>

After starting grok_exporter with readall: false I could briefly poll the metrics, however, after a few seconds the exporter stopped and the log showed
error reading log lines: error reading file system events: failed to read inotify events: interrupted system call

I understand that someone had a similar problem on Windows (issue #17), which was solved after you implemented the poll_interval property. However, I am using RedHat Linux 6

I was wondering if there is something I have do to on my end, or if should use the poll_interval property. Moreover, if I use this property, will the log rollover be detected?

Thanks

@mad-ady
Copy link

mad-ady commented Jan 19, 2022

I can confirm that grok_exporter works fine on RHEL6 with poll_interval set. The problem must be due to the old kernel used (2.6.x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants