LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-16-2005, 05:55 AM   #1
prabhuacsp
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?


hi,

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
pycoucou
Member
 
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
deiussum
Member
 
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
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

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

EDIT: Beaten to it
 
  


Reply


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration