From: Vincent Danen <vdanen@linsec.ca>
Subject: Re: monitoring svlogd-produced logfiles
Date: Wed, 14 Jun 2006 21:32:04 -0600 [thread overview]
Message-ID: <20060615033204.GU898@annvix.org> (raw)
In-Reply-To: <20060615002526.GC20474@home.power>
[-- Attachment #1: Type: text/plain, Size: 2333 bytes --]
* Alex Efros <powerman@powerman.asdfGroup.com> [2006-06-15 03:25:26 +0300]:
> On Wed, Jun 14, 2006 at 06:10:05PM -0600, Vincent Danen wrote:
> > No, I do need svlogd to write to disk. Well, maybe not. I'm using
>
> You'd better clarify itself, to write or not to write. ;-)
Sorry... I write like I think, which is "out loud".. =)
> > /dev/log... can I have two socklog processes doing that?)
>
> You don't need two socklog reading from /dev/log. ;) Anyway, it's unix
> socket, not a fifo... I don't think you can have two listeners on single
> unix socket.
Oh yes, right, sorry. duh. nevermind... been a long day... =)
> > No, I need svlogd to write the logs to disk. In addition to the on-disk
> > logs, I want something to process those logs in realtime... to make a
> > summary log and something that I can have sitting open writing matched
> > entries to STDOUT so I can view it over ssh on my desktop... in
> > realtime.
>
> Duplicating messages to STDERR from svlogd will allow you to receive them
> in realtime.
I didn't realize svlogd could do that. Very good to know.
> > What does <> do? I've never seen that notation before.
>
> man bash.
> Open read/write to workaround case there nobody open this fifo for writing yet.
Cool, thanks. Good to know.
> > BTW, I think I sent the response on the "tail -F" thing to you and not
> > the list... to summ, I did try "-n 0 -F" and it didn't follow. Could be
> > a swatch thing tho... I'll have to try it again and see if it still
> > doesn't work. If it doesn't, I still need to find an alternative to it,
> > so any suggestions are welcome.
>
> Yep. To summ my reply :) I suggest using script-wrapper around tail to
> a) force needed params for tail
> b) debug which param swatch try to use when running tail (without hard
> things like strace)
Well, I can see what swatch is doing just by executing ps... I can see
that it calls it with the right args. I'll see tomorrow if it picks up
the new ./current file after it rotates (about another 300k left before
it rotates).
Thanks for the brain prods... =)
--
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)
:: Annvix - Secure Linux Server: http://annvix.org/ ::
[-- Attachment #2: Type: application/pgp-signature, Size: 186 bytes --]
next prev parent reply other threads:[~2006-06-15 3:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 23:35 Vincent Danen
2006-06-14 23:40 ` Alex Efros
2006-06-16 11:03 ` George Georgalis
2006-06-16 11:08 ` Alex Efros
2006-06-16 13:18 ` George Georgalis
2006-06-16 19:08 ` Vincent Danen
2006-06-18 2:48 ` George Georgalis
2006-06-18 2:57 ` Alex Efros
2006-06-14 23:59 ` Alex Efros
2006-06-15 0:10 ` Vincent Danen
2006-06-15 0:25 ` Alex Efros
2006-06-15 3:32 ` Vincent Danen [this message]
2006-06-15 16:32 ` Vincent Danen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060615033204.GU898@annvix.org \
--to=vdanen@linsec.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).