[rsyslog-notify] Forum Thread: Help with SRX3600 SD-Sylog Stream to Rsyslog - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Wed Apr 2 20:11:09 CEST 2014


User: oldmandt 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24468#p24468

Message: 
----------
Hi, 

I need help with a Juniper SRX 3600 sending SD-Syslog format log messages
to a Rsyslog box.  The syslog messages is showing up on the server, we can
see it with TCPdump but when it gets into the Rsyslog file, it is not
showing the full syslog messages.  Details below.  Any help would be great.

Thanks,

Oldmandt

Message hitting the syslog server seen via TCPDUMP-

12:16:57.402133 IP (tos 0x0, ttl 248, id 20230, offset 0, flags [none],
proto UDP (17), length 720)
    10.1.1.1.syslog >10.1.5.15.syslog: SYSLOG, length: 692
        Facility user (1), Severity info (6)
        Msg: 1 2014-04-01T18:17:34.073Z joe-vFW-hp36 RT_FLOW -
RT_FLOW_SESSION_CREATE_LS [junos at 2636.1.1.1.2.34 logical-system-name="red"
source-address="10.1.2.35" source-port="51981"
destination-address="10.1.3.45" destination-port="22"
service-name="junos-ssh" nat-source-address="10.1.2.35"
nat-source-port="51981" nat-destination-address="10.1.3.45"
nat-destination-port="22" src-nat-rule-name="None" dst-nat-rule-name="None"
protocol-id="6" policy-name="joes-tcp-any" source-zone-name="bobs"
destination-zone-name="jane" session-id-32="140004746" username="N/A"
roles="N/A" packet-incoming-interface="reth0.1121" application="UNKNOWN"
nested-application="UNKNOWN" encrypted="UNKNOWN"]

Message as seen in the Rsyslog file-


Apr  2 16:33:48 joe-vFW-hp36 RT_FLOW 


Rsyslog configuration file-

 

# rsyslog v5 configuration file
 
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see <!-- m --><a class="postlink"
href="http://www.rsyslog.com/doc/troubleshoot.html">http://www.rsyslog.com/doc/troubleshoot.html</a><!--
m -->
 
#### MODULES ####
 
$ModLoad imuxsock # provides support for local system logging (e.g. via
logger command)
$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
 
 
#### GLOBAL DIRECTIVES ####
 
# Use default timestamp format
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
 
# File syncing capability is disabled by default. This feature is usually
not required,
# not useful and an extreme performance hit
#$ActionFileEnableSync on
 
# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf
 
 
#### RULES ####
 
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console
 
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /syslog/messages
 
# The authpriv file has restricted access.
authpriv.*                                              /syslog/secure
 
# Log all the mail messages in one place.
mail.*                                                  -/syslog/maillog
 
 
# Log cron stuff
cron.*                                                  /syslog/cron
 
# Everybody gets emergency messages
*.emerg                                                 *
 
# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /syslog/spooler
 
# Save boot messages also to boot.log
local7.*                                                /syslog/boot.log
 
 
# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
#$WorkDirectory /var/lib/rsyslog # where to place spool files
#$ActionQueueFileName fwdRule1 # unique name prefix for spool files
#$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
#$ActionQueueType LinkedList   # run asynchronously
#$ActionResumeRetryCount -1    # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###


More information about the rsyslog-notify mailing list