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

Stops sending logs after harvester error #12988

Closed
glenjamin opened this issue Jul 19, 2019 · 5 comments
Closed

Stops sending logs after harvester error #12988

glenjamin opened this issue Jul 19, 2019 · 5 comments
Labels
Filebeat Filebeat needs_team Indicates that the issue/PR needs a Team:* label Stalled

Comments

@glenjamin
Copy link

While slurping logs from a nomad install, we found that filebeat would stop sending logs, and tailing the log showed no errors.

Looking further up the logs we do see a single error line, but then the process keeps running and doesn't ship any logs.

Log sample:

2019-07-19T18:17:48.295Z        ERROR   log/input.go:484        Harvester could not be started on new file: /opt/nomad/alloc/ba9e1994-fd5e-8e64-55fb-4afa2e1a1894/alloc/logs/.asldjkasldjaslkdjsalkdjasdlkjasd.stdout.fifo, Err: error setting up harvester: Harvester setup failed. Unexpected file opening error: Tried to open non regular file: "prw-------" .asldjkasldjaslkdjsalkdjasdlkjasd.stdout.fifo

The affected directory looks like this

-rw-r--r-- 1 root   root    13970 Jul 19 19:13 asdfghjklasdfghjklsdfghjk.stderr.0
prw------- 1 root   root        0 Jul 19 19:13 .asdfghjklasdfghjklsdfghjk.stderr.fifo|
-rw-r--r-- 1 root   root       30 Jul 19 19:12 asdfghjklasdfghjklsdfghjk.stdout.0
prw------- 1 root   root        0 Jul 19 19:12 .asdfghjklasdfghjklsdfghjk.stdout.fifo|

For confirmed bugs, please report:

  • Version: 7.2.0
  • Operating System: Ubuntu 18.04
  • Discuss Forum URL: n/a
  • Steps to Reproduce: have the glob match some named pipes
@danlsgiga
Copy link

Facing the same issue... this also leads to filebeat having a memory leak until the nomad job kills the task due to OOM.

However, I'm running filebeat 6.2.3.

@danlsgiga
Copy link

It seems to be not applying the glob matching rule describe here

@danlsgiga
Copy link

danlsgiga commented Oct 8, 2019

@glenjamin, FYI, I overcome this specific issue by setting exclude_files: ['\.fifo$'] in the filebeat prospector config.

Anyhow, I believe filebeat should avoid that, specifically if it says the * glob pattern does not include hidden files (dot files).

@jsoriano jsoriano mentioned this issue Mar 5, 2020
7 tasks
@jsoriano jsoriano added the Filebeat Filebeat label Mar 5, 2020
@botelastic
Copy link

botelastic bot commented Feb 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added Stalled needs_team Indicates that the issue/PR needs a Team:* label labels Feb 3, 2021
@botelastic
Copy link

botelastic bot commented Feb 3, 2021

This issue doesn't have a Team:<team> label.

@botelastic botelastic bot closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filebeat Filebeat needs_team Indicates that the issue/PR needs a Team:* label Stalled
Projects
None yet
Development

No branches or pull requests

3 participants