Re: [syswatch-users] Adding new log files
Brought to you by:
smirks
|
From: Smirks <sm...@sm...> - 2000-11-26 20:34:31
|
Oh, I see.... Well, in that case you should be able to find the section in the code that is for $showlogs, change all the directives to something new, add a variable in the .cf file and BAM. This may be a good addition for a new version. Have a coma delimited list of files to tail and the script will then automatically parse each one. I'll look into it for the next release. Chris On Sun, 26 Nov 2000, hawkeye wrote: > This works great.. However what I was looking for was to have seperate > banners for both the Access Log and the Error Log. That is why I was > trying to modify the actual scripts. > > > On Sun, 26 Nov 2000, Smirks wrote: > > > It is pretty simple actually.... > > > > In the syswatch.cf file simply add the paths to the files you want to > > monitor with spaces between them. For example, if I wanted to monitor the > > system messages and an apache logfile I'd have this: > > > > $logs = "/var/log/syslog /web/logs/www.access.log"; > > > > The output of this is @ http://www.smirks.org/cgi-bin/syswatch.cgi > > > > That should do the trick for ya. ;) > > > > Chris > > > > On Sun, 26 Nov 2000, hawkeye wrote: > > > > > I am curious what all needs to be modified in order to add new logs to be > > > viewed? I am wanting to display the: > > > /usr/local/apache/logs/access_log and the > > > /usr/local/apache/logs/error_log on the report > > > > > > All things that I have tried have failed in one way or the other. I am > > > sure that it will probably be something simple but I have yet to find it. > > > > > > Thanks in advance, > > > > > > David Price > > > > > > _______________________________________________ > > > syswatch-users mailing list > > > sys...@li... > > > http://lists.sourceforge.net/mailman/listinfo/syswatch-users > > > > > > > > > _______________________________________________ > > syswatch-users mailing list > > sys...@li... > > http://lists.sourceforge.net/mailman/listinfo/syswatch-users > > > |