⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syslogd.8

📁 MSyslog是一个允许在Linux下运行的网络系统日志程序
💻 8
字号:
.\"	$CoreSDI: syslogd.8,v 1.25 2002/01/21 19:26:21 alejo Exp $.\".\" Copyright (c) 1983, 1986, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     from: @(#)syslogd.8	8.1 (Berkeley) 6/6/93.\"	$NetBSD: syslogd.8,v 1.3 1996/01/02 17:41:48 perry Exp $.\".Dd June 6, 1993.Dt SYSLOGD 8.Os Core-SDI.Sh NAMEmodular.Nm syslog daemon.Nd log systems messages.Sh SYNOPSIS.Nm syslogd.Op Fl c.Op Fl u.Op Fl n.Op Fl A.Op Fl d Ar level.Op Fl f Ar config_file.Op Fl m Ar mark_interval.Op Fl a Ar path.Op Fl p Ar log_socket.Op Fl i Ar input.Op Fl P Ar pidfile.Sh DESCRIPTIONModular.Nm syslogdaemon reads and logs messages to the system console, log files, othermachines and/or users as specified by its configuration file. Thisimplementation was based on OpenBSD's syslog daemon..PpSupported command line options are:.Bl -tag -width Ds.It Fl d Ar levelEnable debugging to the standard output,and do not disassociate from the controlling terminal. The.Pa levelis a number used to differentiate error reports. Up to 10 reports allcritical errors that stop the daemon from working; up to 20 are theserious errors that stop some input or output; up to 30 are noncriticalerrors; up to 100 are warnings and potential errors; up to 200 are informativemessages; and finally up to 250 are all possible reporting on what is goingon..It Fl f Ar config_fileSpecify the pathname of an alternate configuration file;the default is.Pa /etc/syslog.conf ..It Fl m Ar mark_intervalSelect the number of minutes between ``mark'' messages;the default is 20 minutes..It Fl uAllow the historical ``insecure'' mode, in which syslogd willaccept input from the UDP port as specified in.Pa /etc/services .Some software wants this, but you can be subjected to a variety ofattacks over the network, including attackers remotely filling logs..It Fl P Ar pidfile   Specify an alternate pidfile..It Fl p Ar log_socketSpecify the pathname of an alternate log socket to be used instead;the default is.Pa /dev/log .This option is deprecated by.Fl ioption..It Fl a Pa pathSpecify a location where.Nm syslogdshould place an additional log socket.The primary use for this is to place additional log sockets in.Pa /dev/logof various chroot filespaces. This option is predecated by.Fl ioption..It Fl i Ar input_module [ module_arguments ]Enables the specified input modules, see.Xr im_* 8 ..It Fl nDisables opening default inputs when there aren't given on command line..It Fl cDisables opening console device, useful for non root testing..It Fl AUse local host name with it's domain..El.Pp.Nm Syslogdreads its configuration file when it starts up and whenever itreceives a hangup signal.For information on the format of the configuration file,see.Xr syslog.conf 5 ..Pp.Nm Syslogdcreates the file.Pa /var/run/syslog.pid ,and stores its processid there.This can be used to kill or reconfigure.Nm syslogd ..PpThe message sent to.Nm syslogdshould consist of a single line.The message can contain a priority code, which should be a precedingdecimal number in angle braces, for example,.Sq Aq 5 .This priority code should map into the priorities defined in theinclude file.Aq Pa sys/syslog.h ..Sh EXAMPLESTo run modular.Nmon BSD systems you should:.Pp.Dl # syslogd.Ppwith the command above two inputs modules are created,.Cm bsd,that reads BSD kernel messages from.Pa /dev/klog,and.Cm unix,opens.Pa /dev/logsocket to log standard messages.To run modular.Nmon Linux systems you should:.Pp.Dl # syslogd.Ppwith the command above two inputs modules are created,.Cm linux,that reads linux kernel messages from.Pa /dev/klog,and.Cm unix,opens.Pa /dev/logsocket to log standard messages..Sh FILES.Bl -tag -width /var/run/syslog.pid -compact.It Pa /etc/syslog.confThe configuration file..It Pa /var/run/syslog.pidThe process id of current.Nm syslogd ..It Pa /dev/logName of the.Tn UNIXdomain datagram log socket..It Pa /dev/klogThe kernel log device..El.Sh SEE ALSO.Xr syslog 3 ,.Xr syslog.conf 5 ,.Xr im_bsd 8 ,.Xr im_doors 8 ,.Xr im_linux 8 ,.Xr im_streams 8 ,.Xr im_tcp 8 ,.Xr im_unix 8 ,.Xr im_udp 8 ,.Xr om_classic 8 ,.Xr om_mysql 8 ,.Xr om_peo 8 ,.Xr om_pgsql 8 ,.Xr om_regex 8 ,.Xr om_tcp 8 ,.Xr om_udp 8 ,.Xr peochk 8 ,.Xr syslogd 8.Sh HISTORYModular.Nmis based on the original syslogd daemon appeared in.Bx 4.3 ..Sh BUGSSubmit bugs at this project's Sourceforge Bug reporting system at:http://sourceforge.net/tracker/?func=add&group_id=25741&atid=385117You may also report them directly to the authors; send an email tocore.devel.alat@corest.com, describing the problem the most you can,containing also machine description, hardware description, theconfiguration file (/etc/syslog.conf), the OS description, and theinvoking command line.The more you describe the bug, the faster we can fix it.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -