Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-16-2005, 05:55 AM   #1
LQ Newbie
Registered: Feb 2005
Location: bangalore
Distribution: suse
Posts: 3

Rep: Reputation: 0
Exclamation From where am i getting error messages to /var/log/messages?


I am currently working on the error generated by different daemons in linux like named, inetd etc... These processes are logging there messages in '/var/log/messages'. I am developing an application that generates regular error patterns for any specific process. For easier way I searched the 'named' src code but to my surprise there were no error messages there that matched the one that were in the 'messages' file. According to me they are generated by different processe that give service to the named process.

I am not able to trace the location of where the error messages are being generated. If you are aware of the details please inform me about it at the earliest.

waiting for reply
Prabhu & Deepak
Old 02-16-2005, 06:06 AM   #2
Registered: Apr 2004
Location: Edinburgh
Posts: 78

Rep: Reputation: 15
I may say crap... But I think that the kernel is using messages, typically for booting...
Read the messages file, you would probably have clue of the generating process.
Old 02-16-2005, 08:58 AM   #3
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Not sure if this answers your question, but I believe that most things that log to /var/log/messages do so via the syslog utility.

If I understood you right, you tried searching for the text being logged in the source code for one of the daemons and couldn't find it? This could be partly due to it being programmed with internationalization in mind. The actual text may not be hard coded, but may instead be retrieved from some language file.
Old 02-16-2005, 08:59 AM   #4
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Check out something like man 3 syslog

EDIT: Beaten to it


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 12:34 AM
Error /var/log/messages arthur_NGIT Linux - Software 0 05-26-2004 04:15 PM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM > Forums > Non-*NIX Forums > Programming

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

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