Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Dr. Ed Morbius
First: thanks very much for spelling this out, Ilyas. This was along the lines of what I'd been considering. You addressed a number of concerns I had (e.g.: non-blocking output) which is really helpful. on 08:39 Fri 25 Mar, Ilyas -- (umas...@gmail.com) wrote: Hi! I'm using follow method

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Lamar Owen
On Thursday, March 24, 2011 06:52:24 pm Dr. Ed Morbius wrote: Right, and the general solution also generalizes to other tools. Postgresql (which we aren't using currently) also has its own log handler (a small frustration of mine with the database). PostgreSQL has had syslog support since

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Ilyas --
Hi! Also note that: 1. logrotate wouldn't rotate fifo/pipes if options `notifempty' enabled in logrotate profiles. 2. enable buffering in syslog-ng.conf (next - whole list of options in my config): options { sync (128); time_reopen (10); log_fifo_size (16384);

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Dr. Ed Morbius
on 09:08 Fri 25 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 06:52:24 pm Dr. Ed Morbius wrote: Right, and the general solution also generalizes to other tools. Postgresql (which we aren't using currently) also has its own log handler (a small frustration of mine with

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Dr. Ed Morbius
on 20:19 Fri 25 Mar, Ilyas -- (umas...@gmail.com) wrote: Hi! Also note that: 1. logrotate wouldn't rotate fifo/pipes if options `notifempty' enabled in logrotate profiles. 2. enable buffering in syslog-ng.conf (next - whole list of options in my config): options { sync (128);

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Les Mikesell
On 3/25/2011 2:53 PM, Dr. Ed Morbius wrote: My concern with buffering / blocking output has more to do with some critical service saying wups, no more serving until I can flush my log buffers than it does losing a few lines of logging periodically (though that should also be minimized). Does

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Dr. Ed Morbius
on 15:28 Fri 25 Mar, Les Mikesell (lesmikes...@gmail.com) wrote: On 3/25/2011 2:53 PM, Dr. Ed Morbius wrote: My concern with buffering / blocking output has more to do with some critical service saying wups, no more serving until I can flush my log buffers than it does losing a few lines

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-25 Thread Les Mikesell
On 3/25/2011 3:42 PM, Dr. Ed Morbius wrote: My concern with buffering / blocking output has more to do with some critical service saying wups, no more serving until I can flush my log buffers than it does losing a few lines of logging periodically (though that should also be minimized).

[CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Dr. Ed Morbius
I'm looking for suggestions as to a good general method of remote-logging services such as nginx or anything else which doesn't support syslog natively. I'm aware that there's an nginx patch, and we're evaluating this. It may be the way we fly. However there are other tools which may not have a

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Lamar Owen
On Thursday, March 24, 2011 04:23:38 pm Dr. Ed Morbius wrote: I'm looking for suggestions as to a good general method of remote-logging services such as nginx or anything else which doesn't support syslog natively. logger It's part of util-linux, and should be on every CentOS box, unless

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Dr. Ed Morbius
on 16:35 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 04:23:38 pm Dr. Ed Morbius wrote: I'm looking for suggestions as to a good general method of remote-logging services such as nginx or anything else which doesn't support syslog natively. logger I'm

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Lamar Owen
On Thursday, March 24, 2011 04:44:00 pm Dr. Ed Morbius wrote: on 16:35 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 04:23:38 pm Dr. Ed Morbius wrote: I'm looking for suggestions as to a good general method of remote-logging services such as nginx or anything

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Dr. Ed Morbius
on 17:14 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 04:44:00 pm Dr. Ed Morbius wrote: on 16:35 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 04:23:38 pm Dr. Ed Morbius wrote: I'm looking for suggestions as to a good general

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Lamar Owen
On Thursday, March 24, 2011 05:37:41 pm Dr. Ed Morbius wrote: on 17:14 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: Prior to PostgreSQL supporting syslog I used [logger] to pipe PostgreSQL output to syslog. Worked fine. I haven't, looking at it. It is one option that is definitely in

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Dr. Ed Morbius
on 17:50 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: On Thursday, March 24, 2011 05:37:41 pm Dr. Ed Morbius wrote: on 17:14 Thu 24 Mar, Lamar Owen (lo...@pari.edu) wrote: Prior to PostgreSQL supporting syslog I used [logger] to pipe PostgreSQL output to syslog. Worked fine. I

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Rajagopal Swaminathan
Greetings, On 3/25/11, Dr. Ed Morbius dredmorb...@gmail.com wrote: I'm looking for suggestions as to a good general method of remote-logging services such as nginx or anything else which doesn't support syslog natively. Why not use a fine tuned apache instance instead for webserver? Just a

Re: [CentOS] Remote-logging nginx? (or other non-syslog-enabled stuff)

2011-03-24 Thread Ilyas --
Hi! I'm using follow method for remote logging and catch logs from many servers. Nginx writes logs into fifo, which created via nginx init script: cat /etc/sysconfig/nginx ... # syslog-ng support for nginx if [ ! -p /var/log/nginx/access.log ]; then /bin/rm -f /var/log/nginx/access.log