Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a cron session running every minute so I can get a log in /var/log/message every minute.

But sometimes the timestamps of the log messages go abnormal.

For example, a 12:20:20 message comes before a 12:10:00 message, and after this message is a 12:11:00 message.

This will last for a while and then become normal.

share|improve this question

migrated from Mar 14 '11 at 19:40

This question came from our site for professional and enthusiast programmers.

Does the log receive receive log messages from the network? If yes, your nodes might be out of sync. – Peter G. Mar 14 '11 at 15:35
Not form network, it is a local log – Anonymous Mar 14 '11 at 15:48

does the process take longer than a minute to run? If so, you could be seeing the message written at the end of processing using the start time of the process which could make some messages appear out of sync.

share|improve this answer
Yes, the process may take longer than a minute, but not all the times And I thought that it is just a log, maybe a syslog(...) call, and the time was generated by the syslog-ng , is it? And I write a short test just like this: Time()->localtime()->write() And I run it for a day, and Find this scene again My system runs a network server and some fs test program(a distributed network fs test suit) May the heavily io workload or network load lead to this?And why? – user71822 Mar 15 '11 at 13:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .