tst2005googlecode / logstalgia

Automatically exported from code.google.com/p/logstalgia
1 stars 0 forks source link

request: paddle for each vhost #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i really like the program, alot. and i use it to monitor my websites in real 
time, and it works great, i just have a little feature request

The thing is, i have multiple vhosts on a apache server, each with different 
domain name and its own logfile. Is it possible to get a paddle in logstalgia 
for each vhost/logfile?

i am currently using the command tail -f /logfile1_access.log 
/logfile2_access.log | logstalgia --sync

The --paddle-mode does not seem to make any change on the output

if i do logstalgia --sync logfile1_access.log logfile2_access.log no output is 
displayed.

(maybe i misunderstood something and doing it wrong ??)

Original issue reported on code.google.com by steffans...@gmail.com on 7 Sep 2012 at 9:04

GoogleCodeExporter commented 9 years ago
This is the first time i made a "issue report" on google code, and it got set 
to defect -.-'

Its not a defect, but a feature request. sorry, cant find the page where i can 
change it!

Original comment by steffans...@gmail.com on 7 Sep 2012 at 9:07

GoogleCodeExporter commented 9 years ago
It's already possible. But it depends on the LogFormat set at the vhosts.

Apache defines a default vhost_combined log format as:
LogFormat "%V:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" 
vhost_combined
This doesn't work, because it simply uses the real server name.
Change that to:
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" 
vhost_combined (Notice the small v at the beginning)

Make sure all vhosts use the vhost_combined log format.

Now set --paddle-mode to vhost and it should work.

Original comment by Luuk.Kle...@gmail.com on 11 Dec 2012 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by acaudw...@gmail.com on 28 Jun 2013 at 11:38