How to configure syslog for logging in Python?

System Administration: What limits will be seen when piping Apache logs through logger/syslog for central aggregation?

  • I'm expecting to use something like Flume or Spread, but curious as to what limits syslog (syslog-ng, rsyslog, other variants) has with Apache logging.

  • Answer:

    I don't know that there's a performance issue with logging via syslog in this context. The real issue is control of data flow, reliability of delivery, and the other features offered by something like Flume. Most syslog implementations are meant to be lean and handle significant transfer, but lack many of the features we'd expect from modern log collection systems. That said, it's simple and it certainly works. For a low dependency, low overhead system for collection of local data (where data loss and routing are major obstacles) syslog works great. For managing tiered collection, high availability, reliable delivery of streaming data, I would opt for Flume. Full disclosure: I'm a Flume committer and work at Cloudera.

Eric Sammer at Quora Visit the source

Was this solution helpful to you?

Other answers

Well, we don't really qualify as a large deployment but with 10 frontend nodes sending ~3Mbps of udp traffic to one syslog-ng loghost we get ~1% CPU on the loghost (Xeon E5410). Apache is configured to pipe everything through logger: CustomLog "|/usr/bin/logger -t http://www.example.com -i -p local1.notice" combined

Sergio Simone

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.