Re: Selective logging
Hi Willy, I've dug the mailing list and found this, which would so come in handy for me right now. Any updates on this, are you still considering its implementation? Your proposed solution "log disable if " would work just fine, or even "no log if ". Thanks, Pedro. On 9 Jul 2009, at 05:54, Willy Tarreau wrote: > Hi, > > On Tue, Jul 07, 2009 at 05:41:40PM +0100, Alex Forrow wrote: >> Hi, >> >> We have been using HAProxy very successfully on a busy website for a >> while now, sending all logs via syslog to a separate server. >> >> A single frontend is used to serve all public requests, and currently >> logs everything. We would like to just log requests for dynamic pages, >> is it possible to have HAProxy selectively log requests, either based on >> an acl, or ideally, backend? > > No, unfortunately it's not possible right now, and since the logs are > configured in the frontend, you cannot even use the backend to make > a difference. > > I think that the simplest solution would be to implement something > like "log disable if " which would work both in the frontend and > in the backend. > > I understand your requirement and in my opinion it really makes sense > to log only dynamic pages. I'm adding that on the TODO list. > > Regards, > Willy > > >
Re: Selective logging
2009/7/7 Alex Forrow : > > We have been using HAProxy very successfully on a busy website for a while > now, sending all logs via syslog to a separate server. > > A single frontend is used to serve all public requests, and currently logs > everything. We would like to just log requests for dynamic pages, is it > possible to have HAProxy selectively log requests, either based on an acl, > or ideally, backend? Hi Alex, I'm using syslog-ng to achieve this. The local syslog daemon only forwards logs to the central syslog server when certain criteria are matched. Using syslog-ng usually offers very flexible means to meet your logging requirements. -- Jean-Baptiste Quenot http://jbq.caraldi.com/
Re: Selective logging
Hi, On Tue, Jul 07, 2009 at 05:41:40PM +0100, Alex Forrow wrote: > Hi, > > We have been using HAProxy very successfully on a busy website for a > while now, sending all logs via syslog to a separate server. > > A single frontend is used to serve all public requests, and currently > logs everything. We would like to just log requests for dynamic pages, > is it possible to have HAProxy selectively log requests, either based on > an acl, or ideally, backend? No, unfortunately it's not possible right now, and since the logs are configured in the frontend, you cannot even use the backend to make a difference. I think that the simplest solution would be to implement something like "log disable if " which would work both in the frontend and in the backend. I understand your requirement and in my opinion it really makes sense to log only dynamic pages. I'm adding that on the TODO list. Regards, Willy
Selective logging
Hi, We have been using HAProxy very successfully on a busy website for a while now, sending all logs via syslog to a separate server. A single frontend is used to serve all public requests, and currently logs everything. We would like to just log requests for dynamic pages, is it possible to have HAProxy selectively log requests, either based on an acl, or ideally, backend? Cheers, Alex