Giter Site home page Giter Site logo

Logs rotation about fluent-bit HOT 6 CLOSED

ramialkhawaldeh avatar ramialkhawaldeh commented on June 2, 2024
Logs rotation

from fluent-bit.

Comments (6)

patrick-stephens avatar patrick-stephens commented on June 2, 2024

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.

ramialkhawaldeh avatar ramialkhawaldeh commented on June 2, 2024

@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.

patrick-stephens avatar patrick-stephens commented on June 2, 2024

It's not deleting the logs themselves though, it's telling you it's handling rotation and managing any references removed

from fluent-bit.

patrick-stephens avatar patrick-stephens commented on June 2, 2024

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.

patrick-stephens avatar patrick-stephens commented on June 2, 2024

See https://kubernetes.io/docs/concepts/cluster-administration/logging/#log-rotation

from fluent-bit.

patrick-stephens avatar patrick-stephens commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.