Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

What is the difference between messages and logs?

Posted on 2008-06-13
4
Medium Priority
?
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 80

Assisted Solution

by:arnold
arnold earned 1200 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 62

Accepted Solution

by:
gheist earned 800 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 80

Assisted Solution

by:arnold
arnold earned 1200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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...
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

597 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