-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
--environment <docker|systemd>
takes precedence over "logging.to_files: true"
#41767
Comments
I am facing the same issue on all nodes where Filebeat was upgraded.
Spend hours to troubleshoot and trying different combinations, despite no changes being made in filebeat.yml before upgrading filebeat. The current workaround is downgrade to filebeat-8.13.2 which is working as expected, or change logging.level: error instead of info. |
Folks, I've just tried reproducing it with The filebeat.inputs:
- type: benchmark
eps: 1
message: "foo bar"
output.discard:
enabled: true
logging.level: info
logging.to_files: true
logging.files:
path: /tmp/logs
name: filebeat
keepfiles: 7
permissions: 0640 My execution output
I only changed the How are you folks running Filebeat? Are you passing any CLI argument? |
Could you folks share the output of |
filebeat.yml:
|
I see the same issue.
filebeat.yml
|
Thanks for the information folks! So the CLI argument Some updates on our logging introduced a bug on |
As a wokaround, you'll need to set logging.level: info
logging.to_files: true
logging.to_stderr: false I'll edit the original post to be a bit more clear about it. |
--environment <docker|systemd>
takes precedence over "logging.to_files: true"
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
@belimawr Does this mean that from now on |
No, the precedence order should not change, we need to fix the implementation. |
Edit
Since #41186 got merged,
--environment <docker|systemd>
is taking precedence overlogging.to_files: true
. The old behaviour was for the logging configuration in the configuration file to take precedence over the--environment
flag.For reference,
v8.14.3
is the latest release with the correct behaviour of the--environment
CLI argument.More details on #41767 (comment)
Original post
Filebeat versions of 8.15.4 and higher no longer logs to "logging.files.path" when "logging.to_files: true" is set, unless "logging.to_stderr: false" is explicitly set.
In versions <=8.15.3, setting "logging.to_stderr: false" was not required for "logging.to_files: true" to be honored.
I see nothing in the release notes about this behavioral change, is it expected?
The text was updated successfully, but these errors were encountered: