[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Log monitoring
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Log monitoring
- From: "Galen Johnson" <Galen.Johnson (at) sas.com>
- Date: Sat, 21 Apr 2007 11:41:11 -0400
- Thread-index: AceEJVicCt/COs1tQXa+4Qtrzy1mhgABJ1fA
- Thread-topic: [hobbit] Log monitoring
You rock, dude...that did it. Now I just need to figure out why hobbit can't see the other logs. It's a permissions thing I'm sure but I've made the hobbit user a member of the group that has access yet it seems like the secondary group membership is not being honored. Anyone ever run into this?
=G=
-----Original Message-----
From: Alan Sparks [mailto:asparks (at) doublesparks.net]
Sent: Saturday, April 21, 2007 10:57 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] Log monitoring
Galen Johnson wrote:
> Hey,
>
> I'm having a minor issue with the logging functionality of hobbit. I have a log file that is rolled daily and, as such, has a date embedded. I've tried adding the entry like:
>
> log:/path/to/file_`date +%Y.%m.%d`.log:10240
>
> I got the impression from the docs and Henrik's site that this should be possible. What am I missing?
>
You can... but I think you can only do one or the other, not mix it. A literal, or the whole thing a command in backquotes.
Perhaps if you try something like:
log:`date +'/path/to/file_%Y.%m.%d.log'`:10240
The file must be readable by the Hobbit user for monitoring to work, of course.
-Alan
I do something like the following for some servers, and it works, maybe you can adapt the concept to your needs:
log:`find /path/to/location -maxdepth 1 -name '
--
Alan Sparks, UNIX/Linux Systems Integration and Administration <asparks (at) doublesparks.net>
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk