Current time: 11-27-2024, 01:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
Single combine log, is possible?
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #6
RE: Single combine log, is possible?
This version used a different log handling method than the current one (stable), and I'm quite sure that it doesn't allow output both per-user logs and a global one.

Thus, your only option is to "tail all them at once":
Code:
cd /var/log/apache2
for foo in *-combined.log; do tail -f $foo | awk '{print "'${foo%-combined.log}'",$0}' & done

To stop seeing logs, you'll have to kill the bunch of tail processes:
Code:
killall /usr/bin/tail
(This post was last modified: 06-20-2009 01:56 AM by kilburn.)
06-20-2009 01:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Single combine log, is possible? - romeo - 06-17-2009, 02:38 AM
RE: Single combine log, is possible? - kilburn - 06-20-2009 01:56 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)