Giter Club home page Giter Club logo

Comments (3)

troy avatar troy commented on August 27, 2024

@MattMencel could you explain more about how you want to use this? That is, what's the back story for why you want a facility per log file, rather than using the log file name (in syslog parlance, tag) as a filter later?

from remote_syslog.

MattMencel avatar MattMencel commented on August 27, 2024

On my central logging host (rsyslog) I originally thought I could only filter on facility. I ended up upgrading rsyslog to give me more filtering flexibility (from v5 to v7), but likely my issue was I didn't fully understand the rsyslog filtering rule language. I got it working eventually. I filter on the log source name sent with each log entry.

Still...being able to for example.... send remote maillogs as local3, authlogs as local4, http_access logs as local5, etc.... seems like it might be faster than parsing each log line for the data I am filtering on. Could be I'm wrong and it may not matter anyway. I'm sending multiple GBs of log data per hour to my log host now and it doesn't seem to faze it one bit. So maybe performance is not an issue.

from remote_syslog.

troy avatar troy commented on August 27, 2024

Thanks for the extra detail, @MattMencel. I think that's a good summary and would recommend filtering that way (tag/filename or full string) rather than by facility or severity, unless those really are the most granular/appropriate attributes for what you're looking for.

Performance is not an issue, or at least the difference between comparing the message and comparing the facility isn't going to make a difference.

from remote_syslog.

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.