Welcome! Log In Create A New Profile

Advanced

Re: Log Parsing - Near Real Time

Ed W
August 05, 2011 02:32AM
On 01/08/2011 14:53, John Macleod wrote:
> I'm looking for a near real-time script to parse log files and insert interesting data into a db.
>
> Does anyone know of an existing script to do this?

I don't think anyone said rsyslog yet? Logs directly into a database if
you want, optionally passing through some kind of parser first. It has
spooling to disk in case target cant keep up and semi reliable network
modes. I heard someone say that Fedora had switched their default
syslog to rsyslog (confirmation?) so hopefully it's not too niche for
you... (obviously I believe it can read directly from a file or pipe...)

Alternatively ask nginx to log to some local fifo and write your own
spooler? Beware blocking if you don't keep up though...

Finally note that there have been some previous patches to nginx to add
syslog logging. I personally believe this is useful for many classes of
problem, but I believe that the position by Igor is that it's considered
too slow to keep up with nginx? (I think I have seen Thrift patches in
the past also?).

I personally don't use nginx to the limit and would love to see syslog
logging in standard nginx, even if it limited maximum performance...
Perhaps if there are a core of similar interested users we could
interest (or pay) Igor to consider adding such a feature, caveat the
limitations?

Good luck

Ed W

P.S. This link has some suggestions on logging to a fifo and catching
the output in syslog-ng
http://www.spinics.net/lists/centos/msg109747.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Log Parsing - Near Real Time

John Macleod August 01, 2011 09:56AM

Re: Log Parsing - Near Real Time

splitice August 01, 2011 10:26AM

Re: Log Parsing - Near Real Time

Reinis Rozitis August 01, 2011 10:40AM

Re: Log Parsing - Near Real Time

Randy Parker August 01, 2011 10:58AM

Re: Log Parsing - Near Real Time

Dennis Jacobfeuerborn August 01, 2011 02:58PM

Re: Log Parsing - Near Real Time

Harold Sinclair August 01, 2011 03:14PM

Re: Log Parsing - Near Real Time

splitice August 01, 2011 09:10PM

Re: Log Parsing - Near Real Time

Neil Mckee August 04, 2011 01:00PM

Re: Log Parsing - Near Real Time

Dennis Jacobfeuerborn August 04, 2011 03:18PM

Re: Log Parsing - Near Real Time

Neil Mckee August 04, 2011 08:32PM

Re: Log Parsing - Near Real Time

David Yu August 01, 2011 10:24PM

Re: Log Parsing - Near Real Time

Akins, Brian August 01, 2011 11:50AM

Re: Log Parsing - Near Real Time

Oscar Fernandez August 02, 2011 07:14AM

Re: Log Parsing - Near Real Time

Neil McKee August 01, 2011 12:26PM

Re: Log Parsing - Near Real Time

Ed W August 05, 2011 02:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready