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

Re: [Bigsister-general] config bigsis logfiles placed somewhere else?


suppressed wrote:
> Hi All
> Is there a simple way to config bigsis to write all its log files and
> everything else that takes up some much diskspace to a different
> location from /var/lib/bigsister to something like /tmp/bigsister while
> leaving everything else in /var/lib/bigsis??
>  
> I used rpms to install bigsis if that makes any difference..

Erm, Daniel.. I (briefly) explained how to do this to you before on 8/2/2006. If
there's a problem with my explanation, I'd be happy to answer questions about it.

I think the biggest thing you need to get your mind around is that unix
platforms use a "system logger" approach. What exact files logs get written to
isn't up to the application, it's up to the syslog daemon.

The basic theory behind this is to centralize all the logging into one tool.
That way only one tool ever needs to be aware of your specific directory structure.

While some apps do write their own logs, most just use the syslog feature.
Learning how to use it is useful, as it is THE primary way logging is done on
your system.


Repost:
---------------


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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.