Unix Technical Forum

syslogd -- MARK --

This is a discussion on syslogd -- MARK -- within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello all, what's the use of syslogd putting "-- MARK --" every so often (20 mn as a default) ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 05:10 PM
gregg
 
Posts: n/a
Default syslogd -- MARK --

Hello all,

what's the use of syslogd putting "-- MARK --" every so often (20 mn as
a default) ?

thx,
gregg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 05:10 PM
Dominik L.. Borkowski
 
Posts: n/a
Default Re: syslogd -- MARK --

gregg wrote:

> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
> a default) ?


so you know that the machine was running at that moment.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 05:10 PM
Thomas Overgaard
 
Posts: n/a
Default Re: syslogd -- MARK --


gregg wrote :
>
> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
> a default) ?
>

--MARK-- is just a time stamp in case some thing turns out wrong, so
that you can track down the last known time of activity in your logs.

From 'man syslogd':
-m interval
The syslogd logs a mark timestamp regularly. The default interval
between two -- MARK -- lines is 20 minutes. This can be changed with
this option. Setting the interval to zero turns it off entirely.
--
Thomas O.

This area is designed to become quite warm during normal operation.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 05:11 PM
Michael Black
 
Posts: n/a
Default Re: syslogd -- MARK --


gregg (greggory@netJUSTSAYNOcourrier.com) writes:
> Hello all,
>
> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
> a default) ?
>
> thx,
> gregg


So you know syslog is still working.

Otherwise, you'd not be sure if nothing had happened, or nothing had been
logged.

Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 05:11 PM
D Jaimes
 
Posts: n/a
Default Re: syslogd -- MARK --

On 2004-11-07, gregg <greggory@netJUSTSAYNOcourrier.com> wrote:
> Hello all,
>
> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
> a default) ?
>
> thx,
> gregg

as others have said, it's just a way for syslogd to
check itself, and let you know that it's still working.
although it will fill up log files, so an easy way to
turn MARK off is to edit /etc/rc.d/rc.syslog and
add '-m 0' to the line that starts syslogd like this:
/usr/sbin/syslogd -m 0
this will keep set syslog's MARK to zero when it starts
during boot. to go ahead and turn MARK off while your box
is still running, just kill the daemon and restart it
with the '-m 0' arguments, preferably all at once like this:
# pkill syslogd ; /usr/sbin/syslogd -m 0
once you've done this, you'll no longer get visited by MARK.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 05:11 PM
gregg
 
Posts: n/a
Default Re: syslogd -- MARK --

Thomas Overgaard wrote:
> gregg wrote :
>
>>what's the use of syslogd putting "-- MARK --" every so often (20 mn as
>>a default) ?
>>

>
> --MARK-- is just a time stamp in case some thing turns out wrong, so
> that you can track down the last known time of activity in your logs.
>
> From 'man syslogd':


why, yes i had read the man before posting

but i didn't understand why such a feature existed.
thank all of you for your answer

(i now know it's just a signpost ot know the system was active at the
time, thus enabling the tracking down of problems --if any-- when no
sylog events had occured in a certain period)

++
gregg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 05:11 PM
Michael Black
 
Posts: n/a
Default Re: syslogd -- MARK --


D Jaimes (dj@swicked.net) writes:
> On 2004-11-07, gregg <greggory@netJUSTSAYNOcourrier.com> wrote:
>> Hello all,
>>
>> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
>> a default) ?
>>
>> thx,
>> gregg

> as others have said, it's just a way for syslogd to
> check itself, and let you know that it's still working.
> although it will fill up log files, so an easy way to
> turn MARK off is to edit /etc/rc.d/rc.syslog and
> add '-m 0' to the line that starts syslogd like this:
> /usr/sbin/syslogd -m 0
> this will keep set syslog's MARK to zero when it starts
> during boot. to go ahead and turn MARK off while your box
> is still running, just kill the daemon and restart it
> with the '-m 0' arguments, preferably all at once like this:
> # pkill syslogd ; /usr/sbin/syslogd -m 0
> once you've done this, you'll no longer get visited by MARK.


I used Slackware 7 up to this past January, and the log files did get
very big.

But Slackware 10 is configured out of the box to keep the files to about
a week in length each, and only keeps 5 on disk. This limits how much
space will be used, and automates any need for deleting old files, and
starting new log files.

I'm not sure at what point this change was introduced, I think it was in 9.1.

Michael

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 05:23 PM
Handover Phist
 
Posts: n/a
Default Re: syslogd -- MARK --

gregg blithely blithered
> Hello all,
>
> what's the use of syslogd putting "-- MARK --" every so often (20 mn as
> a default) ?
>
> thx,
> gregg


Very useful for those of us running multiple machines and logging the
whole lot of them to one.

--
I think I am an overnight sensation right now!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 05:25 PM
Mark Hill
 
Posts: n/a
Default Re: syslogd -- MARK --

On 7 Nov 2004 18:34:19 GMT,
Michael Black <et472@FreeNet.Carleton.CA> wrote:
>
> D Jaimes (dj@swicked.net) writes:
>
>> once you've done this, you'll no longer get visited by MARK.


That syslog message can be extra confusing to a newbie when your
username is mark.

> But Slackware 10 is configured out of the box to keep the files to about
> a week in length each, and only keeps 5 on disk.

....
> I'm not sure at what point this change was introduced, I think it was in 9.1.


It was 8.1. From the changelog:

Sun Apr 7 18:15:16 PDT 2002
....
a/logrotate-3.6.2-i386-1.tgz: Added by popular demand. ;-)

--
Mark Hill
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 05:55 PM
Theodore Heise
 
Posts: n/a
Default Re: syslogd -- MARK --

On 17 Nov 2004 14:28:30 GMT,
Mark Hill <mrhill@gmail.com.invalid> wrote:
> On 7 Nov 2004 18:34:19 GMT,
> Michael Black <et472@FreeNet.Carleton.CA> wrote:
>>
>> D Jaimes (dj@swicked.net) writes:
>>
>>> once you've done this, you'll no longer get visited by MARK.

>
> That syslog message can be extra confusing to a newbie when your
> username is mark.


Hilarious--thanks for the laugh!

--
Theodore (Ted) Heise <theo@heise.nu> Bloomington, IN, USA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com