Solved

What is the difference between messages and logs?

Posted on 2008-06-13
4
219 Views
Last Modified: 2013-12-26
I seen in Unix when an error occur ...

we will  look into logs  or messages .

What are the difference between these two ?
0
Comment
Question by:jaisonshereen
  • 2
4 Comments
 
LVL 76

Assisted Solution

by:arnold
arnold earned 300 total points
ID: 21780289
It is a matter of configuration and the applicaiton.

The messages is usually handled through syslog.  I.e. an application encounters an error it sends a notice to the syslog.  Based on the configuration of the syslogd.conf file the error is recorded in messages and/or someplace else.
A log file of an application could be directly accessed by the application. i.e. the application has an error, it appends the error into the log file.

Hope this clears things up.
0
 
LVL 61

Accepted Solution

by:
gheist earned 200 total points
ID: 21780322
"/var/log/messages" is very basic log file, commonly accessible by all system users. Maybe that is a reference to "syslog" program that does base logging of system events (like apache unable to write its logfile)
Some applications do write their own logs in their formats.
0
 

Author Comment

by:jaisonshereen
ID: 21780324
So both are used for application ..what is the difference here ..can give a real example?
0
 
LVL 76

Assisted Solution

by:arnold
arnold earned 300 total points
ID: 21780406
The difference is how the data gets into the file.
i.e. syslog (system event logger)
Apache maintains their own log files. access,error, etc.  The apache process directly inserts entries into those.

 
When a kernel process can not access a device/disk it sends an error message to syslog.  Syslog based on its configuration logs the error in /var/log/messages or another file defined within the /etc/syslogd.conf.
The difference is that the kernel process does not directly access a log file to write the error.  If syslog is not running, the error is not recorded.

In simpler terms, the difference is whether you write the error in the error log or you tell someone that there was an error and that person records the error in an error log.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
SHARE your personal details only on a NEED to basis. Take CHARGE and SECURE your IDENTITY. How do I then PROTECT myself and stay in charge of my own Personal details (and) - MY own WAY...
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now