【转载】/var/log/[messages|syslog|kern.log] 的差别

For the purposes of kernel logging, why do I have three different, non-inclusive levels of logging amongst /var/log/messages, /var/log/syslog, and /var/log/kern.log? 

Syslog is a standard logging facility. It collects messages of various programs and services including the kernel, and stores them, depending on setup, in a bunch of log files typically under /var/log. In some datacenter setups there are hundreds of devices each with its own log; syslog comes here handy too. One just sets up a dedicated syslog server which collects all the individual device logs over the network. Syslog can also save logs to databases, and other stuff. 

According to my /etc/syslog.conf, default /var/log/kern.log captures only the kernel's messages of any loglevel; i.e. the output of dmesg. 
/var/log/messages instead aims at storing valuable, non-debug and non-critical messages. This log should be considered the "general system activity" log. 
/var/log/syslog in turn logs everything, except auth related messages. 

Other insteresting standard logs managed by syslog are /var/log/auth.log, /var/log/mail.log. 
Regarding your question: if you need solely kernel messages log, use the kern.log or call dmesg. 

原文地址:http://askubuntu.com/questions/26237/difference-between-var-log-messages-var-log-syslog-and-var-l...

时间: 2024-10-23 06:40:16

【转载】/var/log/[messages|syslog|kern.log] 的差别的相关文章

kernel segfault at-/var/log/messages报错,很多节点都是,快崩溃。segfault at 30 ip

问题描述 /var/log/messages报错,很多节点都是,快崩溃.segfault at 30 ip Aug 1 09:29:37 gg1131 sshd[15554]: Accepted publickey for nscc567_DL from 20.3.10.20 port 51056 ssh2 Aug 1 09:29:39 gg1131 kernel: [1512610.409422] l302.exel[15600]: segfault at 30 ip 0000000000ee

【DataGuard】ORA-16014 and ORA-00312 Messages in Alert.log of Physical Standby

安装完成dg后,发现alert 之中的有如下错误 ORA-16014: log 4 sequence# 44 not archived, no available destinations ORA-00312: online log 4 thread 1: '/opt/oracle/oradata/orclpdg/redo04.log' Wed Aug 24 22:55:45 2011 Errors in file /opt/oracle/admin/orcl/bdump/orclpdg_arc

关于Weblogic Server重启或log rotation导致server.log的i node number变化问

关于Weblogic Server重启或log rotation导致server.log的i node number变化问题 前两天同事问我一个问题,说是客户那边使用Tivoli分析weblogic server日志的时候,每当server重启,Tivoli就出错,说是FileId is changed.当时就怀疑可能跟server log的iNodeNumber有关.因为没怎么仔细看过weblogic server logging的代码,也不是很确认.跟同事说,让客户通过 ls -i 确认一下

Android开发笔记之:Log图文详解(Log.v,Log.d,Log.i,Log.w,Log.e)_Android

在Android群里,经常会有人问我,Android Log是怎么用的,今天我就把从网上以及SDK里东拼西凑过来,让大家先一睹为快,希望对大家入门Android Log有一定的帮助.android.util.Log常用的方法有以下5个:Log.v() Log.d() Log.i() Log.w() 以及 Log.e() .根据首字母对应VERBOSE,DEBUG,INFO, WARN,ERROR.1.Log.v 的调试颜色为黑色的,任何消息都会输出,这里的v代表verbose啰嗦的意思,平时使用

Log图文详解(Log.v,Log.d,Log.i,Log.w,Log.e)!

android.util.Log常用的方法有以下5个:Log.v() Log.d() Log.i() Log.w() 以及 Log.e() .根据首字母对应VERBOSE,DEBUG,INFO, WARN,ERROR. 1.Log.v 的调试颜色为黑色的,任何消息都会输出,这里的v代表verbose啰嗦的意思,平时使用就是Log.v("",""); 2.Log.d的输出颜色是蓝色的,仅输出debug调试的意思,但他会输出上层的信息,过滤起来可以通过DDMS的Logc

在 android logcat 中 /dev/log/main 和 /dev/log/system 是什么意思?

问题描述 在 android logcat 中 /dev/log/main 和 /dev/log/system 是什么意思? 当我在命令行中输入adb lolcat时,经常看到下面这两行 --------- beginning of /dev/log/main D/dalvikvm( 2586): GC_CONCURRENT freed 651K, 7% free 12236K/13063K, paused 7ms+4ms D/dalvikvm( 2586): GREF has increase

archive log文件大小与redo log文件大小关系探究

     首先我们来看下什么是archive log file,oracle 11g 的concept中是这样定义的:When you enable archiving of the online redo logs, Oracle Database copies the online redo log files to another location before they are overwritten. These copied files are referred to as arch

yii2 log配置-yii2当log为error时自动发邮件该如何配置呢

问题描述 yii2当log为error时自动发邮件该如何配置呢 当log为error时自动发邮件该如何配置呢,当log为error时自动发邮件该如何配置呢,

Log Parser 2.2 + Log Parser Lizard GUI 分析IIS日志示例

Log Parser 日志分析工具,用命令行操作,可以分析 IIS logs,event logs,active directory,log4net,file system,t-sql Log Parser Lizard 以可视化界面操作,使用类似sql的语法查询   下载地址: Log Parser 2.2 :http://www.microsoft.com/en-us/download/details.aspx?id=24659 Log Parser Lizard GUI :http://w