<Log SYSLOG> requires
Sys::Syslog. The logging is in addition to any logging
to the file defined by LogFile. For more information, see Section 3.7.13. LogFile./etc/syslog.conf or its equivalent on your
system.<Log xxxxxx>
clause inside any clause in the configuration file. This causes messages
originating from within that clauses code to be logged with the logger
prior to being logged with any global loggers. This can be handy for
debugging or tracing only certain Realms or AuthBy clauses:
<Handler>
# This will log messages from within the Handler
<Log SYSLOG>
#Trace 2
...
</Log>
</Handler>
user.# Log to the syslog facility called 'auth' Facility auth
<AuthBy whatever>
# With an Identifier, can refer to this logger from
# other clauses
<Log SYSLOG>
Identifier mylogger
Facility user
</Log>
....
</AuthBy>
<AuthBy whatever>
# This AuthBy will log to the Log SYSLOG above
Log mylogger
.....
</AuthBy>
nativeeventlogunixinettcpudpstreampipeconsoleSys::Syslog
default of native, tcp, udp, unix, pipe, stream,
console.Sys::Syslog Perl module, if you have multiple
<AuthLog SYSLOG>, <AcctLog
SYSLOG> or <Log SYSLOG> clauses
and if any one has LogSock defined, all of them must
have LogSock defined.LogHost and
LogPort. If you have not defined
LogPort and you see error "TCP service unavailable",
this means Sys::Syslog is unable to find the
destination port. To resolve this, either use LogPort
to define the port or add syslog/tcp or
syslogng/tcp definitions to
/etc/services file. For more information about
LogPort, see Section 3.26.10. LogPort.LogPath /run/mysyslog/log.sock
LogSock is set to
tcp or udp or inet,
this optional parameter specifies the name or address of the syslog host.
Defaults to the local host. Special formatters are supported. For more
information, see Section 3.3. Special formattersLogHost parameter is passed directly to Perl's
Sys::Syslog module which will likely do a DNS query for
each logged message. This can cause performance problems and high number
of DNS requests with verbose log levels. It is recommended to not set
LogSock and let the local syslog to do remote
logging.Sys::Syslog does not support IPv6.
To log over IPv6, leave LogSock unset and let the
local syslog do remote logging over IPv6.# Log to a remote host via syslog over udp: LogSock udp LogHost your.syslog.host.com
Sys::Syslog::openlog.
LogOpt is a comma separated list of words from the
set:consndelaynofatalnowaitperrorpidSys::Syslog
documentation.pid. Special characters
are supported.LogOpt pid,perror
ident name Sys::Syslog prepends to
every syslog message. Defaults to the executable name used to run radiusd.
Special formatters are supported. For more information, see Section 3.3. Special formatters# Also log server farm instance number LogIdent %h-%O
Sys::Syslog chooses the port. Here is an example of
using LogPort:
LogPort 5514
Sys::Syslog 0.28
or later.LogFormatHook is not defined. Special
formatting characters are permitted. The variables are replaced as
follows: %0 by the message severity as an integer%1 by the severity as a string%2 by the log message%3 by tracing identifier string<Log FILE>, there is no
default value for LogFormat and the format is similar
to LogFormat %l:%1:%2.<Log
SYSLOG>, there is no default value for
LogFormat and the format is similar to
LogFormat %2.LogFormat or the default format is used. The hook
must return a single value. If the value is defined, it is used as the
message to log. An undefined value causes the Log clause to return without
logging. This allows LogFormatHook to function as a
filter to suppress unwanted log messages.goodies/logformat.cfg for a sample
configuration file with JSON and CEF (ArcSight Common Event Format)
formats.Cpanel::JSON::XS
or JSON::XS for higher performance JSON
encoding.