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

Filebeat 8.16.1 is not writing the filebeat logs in the specified log location. #41928

Closed
guru00 opened this issue Dec 6, 2024 · 3 comments
Closed
Labels
needs_team Indicates that the issue/PR needs a Team:* label

Comments

@guru00
Copy link

guru00 commented Dec 6, 2024

Hello Team,
I recently upgraded our Filebeat agent from version 8.15.1 to 8.16.1. After the upgrade, Filebeat is running, but it is not writing any log files to the configured log location. Could you please assist me with this issue? Is this a known bug, or is there something I need to change in the filebeat.yml configuration to ensure that logs are written to the specified location in the newer version?

For confirmed bugs, please report:

  • Version: 8.16.1
  • Operating System: RHEL9

Please find the logging config which I have used our filebeat configuration yml file.
`# ================================== Logging ===================================
logging.level: info
logging.to_files: true
logging.json: true
logging.ecs: true
logging.metrics.enabled: true
logging.metrics:

  • stats
  • dataset
    logging.files:
    path: /var/log/filebeat
    keepfiles: 7
    permissions: 0644
    rotateonstartup: false`
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 6, 2024
@botelastic
Copy link

botelastic bot commented Dec 6, 2024

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

@guru00
Copy link
Author

guru00 commented Dec 9, 2024

Hello Team,
Does anyone have any idea on this issue?

Thanks
Siva

@guru00
Copy link
Author

guru00 commented Dec 9, 2024

Hello Team,
I found out the problem. I could see the similar issue request. The issue is in the latest version of Filebeat, especially after version 8.15.3; the Filebeat is not writing a log message into a file until we configure the parameter below. After configuring the parameter below, I could see my Filebeat 8.16.1 is writing logs into a file under the configured log directory.

logging.to_stderr: false

https://discuss.elastic.co/t/8-16-1-ignores-to-syslog-false/371276/3
#41767

@guru00 guru00 closed this as completed Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

No branches or pull requests

1 participant