Thread: [OpenVMPS-devel] Log to seperate file
Brought to you by:
dori_seliskar
From: Ray H <ra...@me...> - 2006-11-29 14:28:28
|
Hello all, I hope this has been done before but I want to log all vmps data that currently logs to /var/log/messages to a different file, say /var/log/vmps.log. I'm running RHEL4 default syslog and latest version of openvmps. V/r, Ray H. |
From: Sean B. <se...@bo...> - 2006-11-29 17:51:04
|
I'd suggest tweaking openvmps to log to 'local7' or some unused syslog level, and then adapting /etc/syslog.conf to log local7.* to a separate file. Sean P.S. As an openvmps user please also consider visiting freenac.net, you may be interested in the OpenVMPS +mysqlbackend + GUI that we have built. > Hello all, I hope this has been done before but I want to log all vmps > data that currently logs to /var/log/messages to a different file, say > /var/log/vmps.log. I'm running RHEL4 default syslog and > latest version of > openvmps. > > V/r, > Ray H. |
From: Ray H <ra...@me...> - 2006-11-29 19:39:25
|
Hello Sean, thank you for the fast response. I see how and where to set logging level when the vmpsd is started, -l. What I do not understand is how to specify what syslog facility to specify? Would you be able to help in that regard? Is it a setting in vmpsd, syslog or both? My syslog.conf is as follows; *.info;mail.none;authpriv.none;cron.none /var/log/messages authpriv.* /var/log/secure mail.* -/var/log/maillog cron.* /var/log/cron *.emerg * uucp,news.crit /var/log/spooler local7.* /var/log/boot.log We start vmpsd by the absolute path /usr/local/bin/vmpsd, no extra options and it knows where the db file is and I believe the logging level is at informational in /var/log/messages. According to the man page it says you must specify the db file but we do not. Any help would be greatly appreciated. V/r, Ray H. > > I'd suggest tweaking openvmps to log to 'local7' or some unused syslog > level, and then adapting /etc/syslog.conf to log local7.* to a separate > file. > > Sean > > P.S. As an openvmps user please also consider visiting freenac.net, you > may > be interested in the OpenVMPS +mysqlbackend + GUI that we have built. > > > >> Hello all, I hope this has been done before but I want to log all vmps >> data that currently logs to /var/log/messages to a different file, say >> /var/log/vmps.log. I'm running RHEL4 default syslog and >> latest version of >> openvmps. >> >> V/r, >> Ray H. > |
From: Marc B. <mwb...@gm...> - 2006-11-29 22:59:45
|
AFAIK you'll need to modify the source to change the facility vmpsd logs to, I believe it is in log.c or log.h (I would check, but I don't have the source available to me at the moment). I think this would be a good thing to have configurable via either command line or config file. -Marc On 11/29/06, Ray H <ra...@me...> wrote: > > Hello Sean, thank you for the fast response. I see how and where to set > logging level when the vmpsd is started, -l. What I do not understand is > how to specify what syslog facility to specify? Would you be able to help > in that regard? Is it a setting in vmpsd, syslog or both? > > My syslog.conf is as follows; > > *.info;mail.none;authpriv.none;cron.none /var/log/messages > authpriv.* /var/log/secure > mail.* -/var/log/maillog > cron.* /var/log/cron > *.emerg * > uucp,news.crit /var/log/spooler > local7.* /var/log/boot.log > > We start vmpsd by the absolute path /usr/local/bin/vmpsd, no extra options > and it knows where the db file is and I believe the logging level is at > informational in /var/log/messages. According to the man page it says you > must specify the db file but we do not. Any help would be greatly > appreciated. > > V/r, > Ray H. > > > > > I'd suggest tweaking openvmps to log to 'local7' or some unused syslog > > level, and then adapting /etc/syslog.conf to log local7.* to a separate > > file. > > > > Sean > > > > P.S. As an openvmps user please also consider visiting freenac.net, you > > may > > be interested in the OpenVMPS +mysqlbackend + GUI that we have built. > > > > > > > >> Hello all, I hope this has been done before but I want to log all vmps > >> data that currently logs to /var/log/messages to a different file, say > >> /var/log/vmps.log. I'm running RHEL4 default syslog and > >> latest version of > >> openvmps. > >> > >> V/r, > >> Ray H. > > > > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Vmps-devel mailing list > Vmp...@li... > https://lists.sourceforge.net/lists/listinfo/vmps-devel > |
From: Sean B. <se...@bo...> - 2006-12-01 09:31:09
|
> What I do not > understand is > how to specify what syslog facility to specify? Would you be > able to help > in that regard? Is it a setting in vmpsd, syslog or both? in log.c there is line that calls openlog with "LOG_LOCAL6", so change this to the facility you want and recompile > > My syslog.conf is as follows; to get facility local6 in syslog.conf: local6.* /var/log/openvmps.log (you must have TABS between the two fields). Then restart syslog. Sean |