Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

syslog output question

7 views
Skip to first unread message

Tom Porter

unread,
Feb 10, 2002, 3:26:47 PM2/10/02
to
'm using log_in_vain="YES" and i have a shell script that organizes
the syslog output. For statistics, I'd like to get rid of the
following message: "last message repeated x times" & capture the
actual output.

Any idea how to do this?

Thanks...


Tom Porter, Ph.D.

NOTICE: By spamming me,
you consent to a free security audit
spammers...@krumpli.com

Paweł Jakub Dawidek

unread,
Feb 10, 2002, 5:50:38 PM2/10/02
to
Tom Porter <spammers...@krumpli.com> wrote:
> 'm using log_in_vain="YES" and i have a shell script that organizes
> the syslog output. For statistics, I'd like to get rid of the
> following message: "last message repeated x times" & capture the
> actual output.
>
> Any idea how to do this?
>
syslogd(8)
-c Disable the compression of repeated instances of the same line
into a single line of the form `last message repeated N times''
when the output is a pipe to another program. If specified
twice, disable this compression in all cases.

> Thanks...
>
np.

--
Paweł Jakub Dawidek
Network Administrator.
Am I Evil? Yes, I Am.

Tom Porter

unread,
Feb 11, 2002, 12:13:19 PM2/11/02
to
On Sun, 10 Feb 2002 22:50:38 +0000 (UTC), Paweł Jakub Dawidek
<ni...@garage.freebsd.pl> wrote:

>Tom Porter <spammers...@krumpli.com> wrote:
>> 'm using log_in_vain="YES" and i have a shell script that organizes
>> the syslog output. For statistics, I'd like to get rid of the
>> following message: "last message repeated x times" & capture the
>> actual output.
>>
>> Any idea how to do this?
>>
>syslogd(8)
> -c Disable the compression of repeated instances of the same line
> into a single line of the form `last message repeated N times''
> when the output is a pipe to another program. If specified
> twice, disable this compression in all cases.
>
>> Thanks...
>>
>np.

Thank you - now aplogoies for being stupid, but when I look at the man
page for syslogd, I don't see a -c switch. When I tried sticking this
switch in rc.conf syslogd_flags, syslogd exited w/ a failure. ANy
idea what I'm missing here?

Thanks again

Lowell Gilbert

unread,
Feb 11, 2002, 12:28:51 PM2/11/02
to
Tom Porter <spammers...@krumpli.com> writes:

> Thank you - now aplogoies for being stupid, but when I look at the man
> page for syslogd, I don't see a -c switch. When I tried sticking this
> switch in rc.conf syslogd_flags, syslogd exited w/ a failure. ANy
> idea what I'm missing here?

That feature was added within the last five weeks...

Bill Vermillion

unread,
Feb 11, 2002, 3:15:47 PM2/11/02
to
In article <fquf6usk1pj0q2h31...@4ax.com>,

Tom Porter <spammers...@krumpli.com> wrote:
>On Sun, 10 Feb 2002 22:50:38 +0000 (UTC), Paweł Jakub Dawidek
><ni...@garage.freebsd.pl> wrote:

>>Tom Porter <spammers...@krumpli.com> wrote:
>>> 'm using log_in_vain="YES" and i have a shell script that organizes
>>> the syslog output. For statistics, I'd like to get rid of the
>>> following message: "last message repeated x times" & capture the
>>> actual output.
>>>
>>> Any idea how to do this?

>>syslogd(8)
>> -c Disable the compression of repeated instances of the same line
>> into a single line of the form `last message repeated N times''
>> when the output is a pipe to another program. If specified
>> twice, disable this compression in all cases.

>Thank you - now aplogoies for being stupid, but when I look at the man


>page for syslogd, I don't see a -c switch. When I tried sticking this
>switch in rc.conf syslogd_flags, syslogd exited w/ a failure. ANy
>idea what I'm missing here?

Well if you type man syslogd you do NOT see the -c option.
[I'm guessing an omission here]. I just checked and while it is
in the description area it is the only flag missing from
the command line synopsis at the top of the page.

Bill


--
Bill Vermillion - bv @ wjv . com

David Malone

unread,
Feb 11, 2002, 5:14:17 PM2/11/02
to
Tom Porter <spammers...@krumpli.com> writes:

>Thank you - now aplogoies for being stupid, but when I look at the man
>page for syslogd, I don't see a -c switch. When I tried sticking this
>switch in rc.conf syslogd_flags, syslogd exited w/ a failure. ANy
>idea what I'm missing here?

The -c option was added shortly before FreeBSD 4.5 was released,
so unless you're running 4.5 you probably don't have it.

David.

0 new messages