LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-21-2011, 02:53 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
According to /var/log/messages the OS was always idle but I know this to be false.


Hi:

Look at this /var/log/messages, if you please:

Code:
Jun 20 04:40:01 darkstar syslogd 1.4.1: restart.
Jun 20 04:54:30 darkstar -- MARK --
Jun 20 06:34:30 darkstar -- MARK --
Jun 20 06:54:30 darkstar -- MARK --
Jun 20 07:14:30 darkstar -- MARK --
............................
Jun 20 14:14:38 darkstar -- MARK --
Jun 20 14:34:38 darkstar -- MARK --
Jun 20 14:54:38 darkstar -- MARK --
Jun 20 15:14:38 darkstar -- MARK --
This is the entire file, except for the dots. The machine had been turned on all night. Then I went to the machine and, first thing I do is
$ less /var/log/messages
$
The file was as above. But I know I was working at it from 7am to 10am at least. This needs clarification:

4:40 I turn on.
up to 6:00 idle
6:00 activity at keyboard
8:00 I leave work at the machine

It's just an example as I don't exactly remember the timing. But according to the entries I was never working.

Last edited by stf92; 06-21-2011 at 03:49 AM.
 
Old 06-21-2011, 03:53 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by stf92 View Post
It's just an example as I don't exactly remember the timing. But according to the entries I was never working.
Your usage of the machine doesn't necessarily create log entries, so without a logable event occurring nothing will appear in the logs.
 
Old 06-21-2011, 03:56 AM   #3
16pide
Member
 
Registered: Jan 2010
Posts: 418

Rep: Reputation: 83
/var/log/messages does not log user activity, it logs system events.

view a video and it won't be logged there.
plug a usb stick, and it will be logged
getting a dhcp address will get logged there too
 
Old 06-21-2011, 04:07 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thank for the posts.
And what is the meaning of -- MARK -- ? This entry means there has been no activity for the last 20m, I think and my experience tells me.

Last edited by stf92; 06-21-2011 at 04:09 AM.
 
Old 06-21-2011, 04:22 AM   #5
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,971

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by stf92 View Post
But according to the entries I was never working.
Nope, it simply means that nothing occurred that was worth logging.

MARK is time marker, it tells you the logger is working.

Quote:
Originally Posted by man syslogd
-m interval

The syslogd logs a mark timestamp regularly. The default interval between two -- MARK -- lines is 20 min-
utes. This can be changed with this option. Setting the interval to zero turns it off entirely. Depending
on other log messages generated these lines may not be written consecutively.

Last edited by chrisretusn; 06-21-2011 at 04:29 AM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/adm/messages vs /var/log/messages gomes1333 Linux - General 1 04-06-2010 04:08 AM
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 01:08 PM
sym0:4:0 messages in /var/log/messages smallbook Linux - Newbie 0 02-20-2008 07:35 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration