LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2012, 11:55 AM   #1
achinksinghal
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Rep: Reputation: Disabled
Regarding Syslog


hi,

I am new to syslog library. Kindly help in this query.

Is there any way to get syslog logs in dmesg command.

Achintya Singhal
 
Old 06-18-2012, 01:04 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Not really and you don't really want to.

Most of what appears in dmesg is apt to show up in syslog (and can be configured to do so) because syslog allows for recording all sorts of things. demsg on the other hand is designed really only to display RECENT kernel messages. dmesg unlike syslog does not give date time of the entry so you never know on looking at dmesg whether what you are seeing occured just now, 5 minutes ago, 5 weeks ago or on a reboot you did last year. dmesg gets cleared during reboot so the only thing you're sure of is that what it has in it occurred during or after the last reboot. In fact some folks run scripts to dump dmesg into syslog periodically then clear dmesg so they can have some reasonable assurance what is in dmesg is after the last run of their script.
 
Old 06-18-2012, 01:20 PM   #3
achinksinghal
LQ Newbie
 
Registered: Jun 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks MensaWater for your reply.

In syslog, I am using it using facility LOG_KERN. And then it should pass that log as kernel message. Still, demsg doesnot show these logs. Indeed logs are printing on console while application is running.

I need this logging because my device runs only one application and I need synchronization of logs between application and kernel.

Achintya Singhal
 
  


Reply



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
syslog-ng -> syslog-ng logging, how to troubleshoot sir-lancealot Linux - Server 1 01-24-2009 06:07 AM
LXer: OpenLDAP Quick Tips: Using syslog or syslog-ng with slapd for OpenLDAP logging LXer Syndicated Linux News 0 11-14-2008 08:41 PM
I need help getting syslog to log remotely, this is just the regular syslog. abefroman Linux - Software 2 06-05-2008 11:36 AM
syslog client to log to syslog-ng and itself noir911 Linux - Server 1 02-08-2008 09:51 AM
LXer: Centralized Syslog Server Using syslog-NG LXer Syndicated Linux News 0 04-28-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration