Fluent bit default log level is set to info, which is pretty chatty. This is causing customers to pay unnecessarily large log bills, particularly when their logs are not in the "kubernetes" format which results in this log message:
If the kubernetes structure is not found in the log record, then the log_group_name and log_stream_prefix will be used instead, and Fluent Bit will log an error like:
...
Other customers have reported a large amount of this unnecessary warning
2023-09-21T20:14:51.860592207Z stderr F [2023/09/21 20:14:51] [ warn] [parser:_ml_cri] invalid time format %Y-%m-%dT%H:%M:%S.%L%z for '2023-09-21T20:14:51.860487043Z stderr F [2023/09/21 20:14:51] [ warn] [parser:_ml_cri] invalid time format %Y-%m-%dT%H:%M:%S.%L%z for '2023-09-21T20:14:51.860372704Z'
Description of changes
Change the default log level in our samples from info to error
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
I spun up a new cluster and deployed the enhanced CI yaml
In 30 minutes the new cluster did not have any logs in /application coming from the fluentbit application
![Uploading Screenshot 2023-12-19 at 11.12.41 AM.png…]()
This is what I expect because the fluent-bit pod is also not logging
➜ amazon-cloudwatch-container-insights git:(fluentbit-error-logs) kubectl logs fluent-bit-nw46d -n amazon-cloudwatch
amazon-cloudwatch fluent-bit-nw46d 1/1 Running 0 34m
Fluent Bit v1.9.10
* Copyright (C) 2015-2022 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
* ```
amazon-cloudwatch fluent-bit-nw46d 1/1 Running 0 34m
Fluent Bit v1.9.10
Copyright (C) 2015-2022 The Fluent Bit Authors
Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
Before committing the code, please verify the following:
If this commit includes changes to existing sample configurations, you acknowledge that you have confirmed this will not impact existing customer behavior.
yes this will have an impact on existing customer behavior. The amount of fluent-bit "application" logs will dramatically decrease. This will lower customers bills.
If not necessary, consider creating a new sample configuration for this change.
…s being published
Description of the issue
Fluent bit default log level is set to info, which is pretty chatty. This is causing customers to pay unnecessarily large log bills, particularly when their logs are not in the "kubernetes" format which results in this log message:
https://docs.fluentbit.io/manual/v/1.9-pre/pipeline/outputs/cloudwatch
Other customers have reported a large amount of this unnecessary warning
Description of changes
Change the default log level in our samples from info to error
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
I spun up a new cluster and deployed the enhanced CI yaml
In 30 minutes the new cluster did not have any logs in
/application
coming from the fluentbit application ![Uploading Screenshot 2023-12-19 at 11.12.41 AM.png…]()This is what I expect because the fluent-bit pod is also not logging
amazon-cloudwatch fluent-bit-nw46d 1/1 Running 0 34m Fluent Bit v1.9.10
Requirements
Before committing the code, please verify the following:
yes this will have an impact on existing customer behavior. The amount of fluent-bit "application" logs will dramatically decrease. This will lower customers bills.