Commit 3c46b1f6 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

added rsyslog configuration

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4946
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent daf776b3
......@@ -55,8 +55,8 @@
\newcommand{\DLlogger}{\texttt{DL1logger}}
\newcommand{\Dloggerhost}{\textsc{netrunner}}
\newcommand{\DloggerhostIP}{\texttt{192.168.1.26}}
\newcommand{\Ddisplayhost}{\textsc{kubo}}
\newcommand{\DdisplayhostIP}{\texttt{192.168.1.33}}
\newcommand{\Ddisplayhost}{\textsc{stromboli}}
\newcommand{\DdisplayhostIP}{\texttt{192.168.1.41}}
\newcommand{\Dserialdevice}{\texttt{/dev/ttyUSB0}}
\newcommand{\Dloggeruser}{\texttt{dl1}}
\newcommand{\Dloggeruserhome}{\texttt{/home/dl1}}
......@@ -354,6 +354,27 @@ log { source(DL1); filter(f_dl1_notice); destination(dl1log); };
[...]
\end{verbatim}
%----------------------------------------------------------------------
\subsection{\texttt{/etc/rsyslog.d/netrunnerDL1.conf} on \Ddisplayhost}
\label{sec:conf:rsyslog:display}
If \texttt{rsyslog} is used instead of \texttt{syslog-ng}, configuration is
different.
Make sure that
\begin{verbatim}
[...]
#
# Include config files, that the admin provided? :
#
$IncludeConfig /etc/rsyslog.d/*.conf
[...]
\end{verbatim}
is present in \texttt{/etc/rsyslog.conf}.
Then place \texttt{/etc/rsyslog.d/netrunnerDL1.conf} in
is present in \texttt{/etc/rsyslog.d}.
\paragraph{\texttt{/etc/rsyslog.d/netrunnerDL1.conf}:}
\verbatiminput{netrunnerDL1.conf}
%----------------------------------------------------------------------
\subsection{\texttt{/etc/logrotate.d/DL1\_logrotate.conf}}
\label{sec:conf:syslog:logrotate}
......
##
## config file to receive DL1 messages from netrunner
## thof 6.12.2012
## $Id$
##
## === When you're using remote logging, enable on-disk queues ===
## === in rsyslog.d/remote.conf. When neccesary also set the ===
## === SYSLOG_REQUIRES_NETWORK=yes in /etc/sysconfig/syslog, ===
## === e.g. when rsyslog has to receive on a specific IP only. ===
##
## Note, that when the MYSQL, PGSQL, GSSAPI, GnuTLS or SNMP modules
## (provided in separate rsyslog-module-* packages) are enabled, the
## configuration can't be used on a system with /usr on a remote
## filesystem, except on newer systems where initrd mounts /usr.
## [The modules are linked against libraries installed bellow of
## /usr thus also installed in /usr/lib*/rsyslog because of this.]
##
# ######### Receiving Messages from Remote Hosts ##########
# TCP Syslog Server:
# provides TCP syslog reception and GSS-API (if compiled to support it)
$ModLoad imtcp.so # load module
##$UDPServerAddress 10.10.0.1 # force to listen on this IP only,
## # needs SYSLOG_REQUIRES_NETWORK=yes.
$InputTCPServerRun 2222 # Starts a TCP server on selected port
# UDP Syslog Server:
#$ModLoad imudp.so # provides UDP syslog reception
##$UDPServerAddress 10.10.0.1 # force to listen on this IP only,
## # needs SYSLOG_REQUIRES_NETWORK=yes.
#$UDPServerRun 514 # start a UDP syslog server at standard port 514
if ($programname == 'DL1logger' or $syslogtag == 'DL1logger') and \
($syslogseverity <= 5 /* notice */) \
then -/var/log/dl1log
& -/var/log/dl1logall
& ~
if ($programname == 'DL1logger' or $syslogtag == 'DL1logger') and \
($syslogseverity <= 8 /* any */) \
then -/var/log/dl1logall
& ~
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment