Giter Club home page Giter Club logo

Comments (6)

ilyam8 avatar ilyam8 commented on June 25, 2024

Hi, @CZAirwolf. This is the systemd journal, not Netdata. Looking at your configuration, I think it was applied to the default namespace and not the netdata namespace. Check out the systemd journal documentation - how to apply configuration to namespaces.

from netdata.

CZAirwolf avatar CZAirwolf commented on June 25, 2024

Installation of the netdata package from netdata.cloud will create /etc/logrotate.d/netdata for log handling. When the same package configure systemd journal for logging in the netdata namespace, why you want ignore those journal netdata logs???

image

from netdata.

ilyam8 avatar ilyam8 commented on June 25, 2024

The logrotate file has nothing to do with systemd journal logs. systemd-journald (not Netdata) is responsible for rotating. As I mentioned above, your configuration is only for the default systemd journal namespace.

from netdata.

CZAirwolf avatar CZAirwolf commented on June 25, 2024

Please remove /etc/logrotate.d/netdata, it's not netdata problem, rsyslog (etc) is responsible for rotating.

Really stupid answer.

If you create dedicated logs (especially not covered by default settings), you are responsible for ensuring the rotation.

from netdata.

ilyam8 avatar ilyam8 commented on June 25, 2024

You are confusing text log files (/var/log/) and systemd journal binary logs (/var/log/journal). logrotate rotates and compresses log files (/var/log/netdata/*), but Netdata does not write to files when running as a systemd service.

systemd-journald (systemd's logging daemon) is writing/rotating /var/log/netdata/*.


I have limited journal logs via /etc/systemd/journald.conf.d# cat override.con

from man journald.conf

The systemd-journald instance managing the default namespace is configured by /etc/systemd/journald.conf and associated drop-ins.
Instances managing other namespaces read /etc/systemd/[email protected] and associated drop-ins with the namespace identifier filled in.

^^ That is why I said that

Looking at your configuration, I think it was applied to the default namespace and not the netdata namespace

from netdata.

ilyam8 avatar ilyam8 commented on June 25, 2024

@Ferroin, hey. The default limit for journal files (SystemMaxUse/RuntimeMaxUse) is 4GB. I think it makes sense to install /etc/systemd/[email protected] with smaller values. What do you think?

from netdata.

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.