RELP funktioniert nur zur Hälfte

This is a German-language forum for those that prefer this language. For broader audience (and quicker replies) post to the English forums if you feel comfortable enough with that.

Dies ist ein deutschsprachiges rsyslog Forum. Hier gibt es keine weitere Unterteilung wie in den Englischen Foren. Wer sich bei Deutsch wohler fühlt, der Poste hier. Man bedanke aber, das Antworten hier ob der geringeren Teilnehmerzahl länger dauern können.

Google Ads


RELP funktioniert nur zur Hälfte

Postby hotkey » Tue Jul 20, 2010 4:58 pm

Hallo,

ich verwende "debian (5.0.5)" und "rsyslog-relp (4.4.2-1~bpo50+1)" in einer VirtualBox Umgebung. Dort habe ich einen Master und zwei Nodes installiert. Die Übertragung der Log Files funktioniert eigentlich ganz gut, aber es gibt Probleme wenn der Master für kurze Zeit nicht erreichbar ist. Ich habe keine Ahnung, ob die Nachrichten auf den Nodes nicht richtig in die Queue geschrieben werden oder der Reconnect zwischen Node und Master nicht richtig funktioniert. Habe ich irgendetwas übersehen oder falsch konfiguriert?

Code: Select all
#  /etc/rsyslog.conf   Configuration file for rsyslog.
#
#         For more information see
#         /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html


#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

# provides RELP syslog reception
$ModLoad imrelp
$InputRELPServerRun 2514


###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

#
# Set the default permissions for all log files.
#
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf


##################
#### TEMPLATES ###
##################
$template auth, "/var/log/rsyslog/%HOSTNAME%/auth.log"
$template syslog, "/var/log/rsyslog/%HOSTNAME%/syslog"
$template cron, "/var/log/rsyslog/%HOSTNAME%/cron.log"
$template daemon, "/var/log/rsyslog/%HOSTNAME%/daemon.log"
$template kern, "/var/log/rsyslog/%HOSTNAME%/kern.log"
$template lpr, "/var/log/rsyslog/%HOSTNAME%/lpr.log"
$template mail, "/var/log/rsyslog/%HOSTNAME%/mail.log"
$template user, "/var/log/rsyslog/%HOSTNAME%/user.log"
$template mail.info, "/var/log/rsyslog/%HOSTNAME%/mail.info"
$template mail.warn, "/var/log/rsyslog/%HOSTNAME%/mail.warn"
$template mail.err, "/var/log/rsyslog/%HOSTNAME%/mail.err"
$template news.crit, "/var/log/rsyslog/%HOSTNAME%/news/news.crit"
$template news.err, "/var/log/rsyslog/%HOSTNAME%/news/news.err"
$template news.notice, "/var/log/rsyslog/%HOSTNAME%/news/news.notice"
$template debug, "/var/log/rsyslog/%HOSTNAME%/debug"
$template messages, "/var/log/rsyslog/%HOSTNAME%/messages"


###############
#### RULES ####
###############

#
# First some standard log files.  Log by facility.
#
auth,authpriv.*         ?auth
*.*;auth,authpriv.none      ?syslog
#cron.*            ?cron
daemon.*         ?daemon
kern.*            ?kern
lpr.*            ?lpr
mail.*            ?mail
user.*            ?user

#
# Logging for the mail system.  Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info         ?mail.info
mail.warn         ?mail.warn
mail.err         ?mail.err

#
# Logging for INN news system.
#
news.crit         ?news.crit
news.err         ?news.err
news.notice         ?news.notice

#
# Some "catch-all" log files.
#
*.=debug;\
   auth,authpriv.none;\
   news.none;mail.none   ?debug
*.=info;*.=notice;*.=warn;\
   auth,authpriv.none;\
   cron,daemon.none;\
   mail,news.none      ?messages

#
# Emergencies are sent to everybody logged in.
#
*.emerg            *

#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
#   news.=crit;news.=err;news.=notice;\
#   *.=debug;*.=info;\
#   *.=notice;*.=warn   /dev/tty8

# The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
# you must invoke `xconsole' with the `-file' option:
#
#    $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
daemon.*;mail.*;\
   news.err;\
   *.=debug;*.=info;\
   *.=notice;*.=warn   |/dev/xconsole


Code: Select all
#  /etc/rsyslog.conf   Configuration file for rsyslog.
#
#         For more information see
#         /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html


#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

# provides RELP syslog forwarding
$ModLoad omrelp


###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

#
# Set the default permissions for all log files.
#
$FileOwner root
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

$WorkDirectory /var/spool/rsyslog # default location for work (spool) files
$ActionQueueType LinkedList       # use asynchronous processing
$ActionQueueFileName srvrfwd      # set file name, also enables disk mode
$ActionResumeRetryCount -1        # infinite retries on insert failure
$ActionQueueSaveOnShutdown on     # save in-memory data if rsyslog shuts down


###############
#### RULES ####
###############

#
# First some standard log files.  Log by facility.
#
auth,authpriv.*         /var/log/auth.log
*.*;auth,authpriv.none      -/var/log/syslog
#cron.*            /var/log/cron.log
daemon.*         -/var/log/daemon.log
kern.*            -/var/log/kern.log
lpr.*            -/var/log/lpr.log
mail.*            -/var/log/mail.log
user.*            -/var/log/user.log

#
# Logging for the mail system.  Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info         -/var/log/mail.info
mail.warn         -/var/log/mail.warn
mail.err         /var/log/mail.err

#
# Logging for INN news system.
#
news.crit         /var/log/news/news.crit
news.err         /var/log/news/news.err
news.notice         -/var/log/news/news.notice

#
# Some "catch-all" log files.
#
*.=debug;\
   auth,authpriv.none;\
   news.none;mail.none   -/var/log/debug
*.=info;*.=notice;*.=warn;\
   auth,authpriv.none;\
   cron,daemon.none;\
   mail,news.none      -/var/log/messages

#
# Emergencies are sent to everybody logged in.
#
*.emerg            *

#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
#   news.=crit;news.=err;news.=notice;\
#   *.=debug;*.=info;\
#   *.=notice;*.=warn   /dev/tty8

# The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
# you must invoke `xconsole' with the `-file' option:
#
#    $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
daemon.*;mail.*;\
   news.err;\
   *.=debug;*.=info;\
   *.=notice;*.=warn   |/dev/xconsole

*.*   :omrelp:192.168.17.101:2514
hotkey
New
 
Posts: 1
Joined: Tue Jul 20, 2010 4:22 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Google Ads


Return to Deutsches rsyslog Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron