Viewing Syslog Format Output; Exporting To A Script - Juniper NETWORK AND SECURITY MANAGER 2010.4 - ADMININISTRATION GUIDE REV1 Administration Manual

Table of Contents

Advertisement

Syslog
Multiple
--facility
Yes
Copyright © 2010, Juniper Networks, Inc.
Required
Yes
The syslog format has no optional format-specific filters.

Viewing Syslog Format Output

Syslog messages use the following format:
<day id>, <record id>, <timeReceived>, <timeGenerated>, <devicedomain>,
<devicedomainVersion>, <deviceName>, <deviceIpAddress>, <category>, <subcategory>,
<src zone>, <src intface>, <src addr>, <src port>, <nat src addr>, <nat src
port>, <dst zone>, <dst intface>, <dst addr>, <dst port>, <nat dst addr>, <nat
dst port>, <protocol>, <rule domain>, <rule domainVersion>, <policyname>,
<rulebase>, <rule number>, <policy id>, <action>, <severity>, <is alert>,
<details>, <user str>, <application str>, <uri str>, <elapsed>, <bytes in>, <bytes
out>, <bytes total>, <packet in>, < packet out>, < packet total>, <repeatCount>,
<hasPacketData>, <varData Enum>,<application name>,<device family>

Exporting to a Script

The script action directs the system to execute a script, use STDIN to pass log records
formatted as XML to the script, and report output status. You must specify the name of
the script that receives the exported log records (script must be located in the
/usr/netscreen/DevSvr/lib/scripts/ directory).
To export:
Login to the Device Server as root, then change to the utility directory by typing: cd
1.
/usr/netscreen/DevSvr/lib.
To export to a file, type:
2.
sh devSvrCli.sh --log2action --action --script <script-name> <error-handling>
The Device Server exports all log records to the specified script.
Meaning
Specifies the facility that receives syslog messages. For
details on the facility parameter, refer to section 4.1.1 of
RFC 3164.
The syslog severity, also used to calculate the overall
syslog message priority, is automatically set to alert.
Chapter 19: Logging
807

Advertisement

Table of Contents
loading

This manual is also suitable for:

Network and security manager 2010.4

Table of Contents