Comments (6)
Log rotation is nothing to do with Fluent Bit, it is done by whatever system you have configured. Fluent Bit just reads the files, it never deletes them.
from fluent-bit.
@patrick-stephens but I see this on fluenbit logs [2024/05/01 09:05:09] [ info] [input:tail:tail.21] inode=327161765 handle rotation(): /var/log/containers/coroot-node-agent-vkpk2_coroot_node-agent-7d35f61d78527813f978d3c77c26bde05445b380f164e72d1209c81be2d239c8.log => /var/log/pods/coroot_coroot-node-agent-vkpk2_ea706eac-8211-41b5-af12-453bf137ec31/node-agent/109.log (deleted) [2024/05/01 09:06:49] [ info] [input:tail:tail.21] inode=174064133 handle rotation(): /var/log/containers/coroot-node-agent-2sz8l_coroot_node-agent-af39e847752ab14d2dafb3a06fedc12a9dcb01ca2b71291e09b0d20bbcc66948.log => /var/log/pods/coroot_coroot-node-agent-2sz8l_70bf0f33-2a0e-4e33-b4a6-976e4371f4ef/node-agent/127.log (deleted)
from fluent-bit.
It's not deleting the logs themselves though, it's telling you it's handling rotation and managing any references removed
from fluent-bit.
The easiest way to prove it is by making sure your logs mount is read-only into the FB container then it cannot delete them. However it is not deleting the actual files, the kubelet manages log rotation for you and Fluent Bit is then telling you files are being deleted but it is handling the rotation.
You could also just not deploy Fluent Bit and watch your log files still rotate... :)
from fluent-bit.
See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation
from fluent-bit.
I'm going to close this as I do not think it is related to Fluent Bit but feel free to reopen if so - please follow the issue template then if you do to capture all the relevant information.
from fluent-bit.
Related Issues (20)
- My company is using fleunt-bit HOT 1
- Fluent-Bit Upstream configuration Issues HOT 1
- HTTP_password with special characters
- MongoDB output plugin HOT 1
- readOnlyFilesystem not supported by init image
- in_winevtlog: StringInserts field not present in resulting logs by default HOT 1
- CVE-2023-45853 listed as CRITICAL vulnerability on fluent-bit 3.0.4 HOT 1
- fluent-bit 3.0.3+ fails to build with -Wincompatible-pointer-types and -Wpointer-sign HOT 1
- Fluent-bit 3.0.4 throwing repeated warnings ( [ warn] [record accessor] translation failed, root key=hec_token) HOT 10
- out_http: don't retry non retryable 4xx status codes
- Multiple nestings under the same key lead to duplicate maps
- Fluentbit 3.0 Opentelemetry does not process records correctly
- 3.0.5: output:splunk: Error http_status=401 Token is required HOT 8
- Prometheus metrics "fluentbit_output_upstream_busy_connections" shows negative value during connection timed out HOT 2
- `Logstash_Prefix_Key` not working (any more?) in Fluent Bit 3.x
- Support for linux on IBM Power platform (ppc64le) HOT 3
- Fluentbit multiline parsing is not working as intended HOT 2
- Unable to STS assume Role in fluentbit/S3 plugin HOT 2
- Store the logs in log-storage & GCS storage through fluentbit HOT 1
- Could the `Elasticsearch OUTPUT` Index configuration support dynamic index name (use record accessor) ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-bit.