[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] bigsis and log files..how to redirect?


suppressed wrote:
> Hello All
> 
> How can I redirect bigsister to write messages to its OWN logfile instead of filling up my /var/log/messages files with billions of bigsis entries..
> I installed bigsis onto my linux cluster using rpm packages of this makes any difference?

man syslog.conf
vi /etc/bigsister/adm/resources
vi /etc/syslog.conf
ps ax
kill -HUP <PID of syslogd>

More detailed:

Logging in *nux is generally a function of two things:

1) what "facility" your application passes when it calls to syslog
2) what file syslog is configured to direct that "facility" to.

Right now, bigsister is defaulting to using "daemon" as a facility. Your
syslog.conf is probably configured to send *.info (ie: all facilities, with
severity info or higher, perhaps with some exceptions like cron.none) to
/var/log messages.

you could change this by taking advantage of one of the unused "local" facilities.

(note: all theoretical, I've not tested this but it should work)

quick example syslog.conf (using local5):
--------

*.info;mail.none;authpriv.none;cron.none;local5.none; 	/var/log/messages
local5.*			/var/log/bigsister
---------

note I added local5.none to the /var/log/messages specs to prevent these from
going to both files. Otherwise syslog WILL write it to both files at the same time.


and /etc/bigsister/adm/resources:
---------
*.log_facility=local5
---------


You could also try editing /etc/bigsister/resources, but that warns to to only
edit the adm/resources file. This file, and directory, don't even exist on my
box, but I'm assuming that's where they belong.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.