Network and Security Manager Administration Guide
CSV
--file-path
--include-header
778
To export to a file, type:
2.
sh devSvrCli.sh --log2action --action --csv <file-path> <include-header>
The Device Server exports all log records to CSV; each log record becomes an CSV record.
Using CSV Required and Optional Format-Specific Filters
You can use the following required and optional format-specific filters for exporting to
CSV:
Multiple
No
No
Viewing CSV Format Output
CSV log files use this format:
Log Day Id, Log Record Id, Time Received (UTC), Time Generated (UTC), Device
Domain, Device Domain Version, Device Name, Device IpAddr, Category, Sub-Category,
Src Zone, Src Intf, Src Addr, Src Port, NAT Src Addr, NAT Src Port, Dst Zone,
Dst Intf, Dst Addr, Dst Port, NAT Dst Addr, NAT Dst Port, Protocol, Policy Domain,
Policy Domain Version, Policy, Rulebase, Rule Number, Policy ID, Action, Severity,
Is Alert, Details, User, App, URI, Elapsed Secs, Bytes In, Bytes Out, Bytes
Total, Packets In, Packets Out, Packets Total, Repeat Count, Has Packet Data, Var
Data Enum, Application name, Device family.
To print the column headers for log records when exporting to a CSV file, use the
include-header option:
sh devSvrCli.sh --log2action --action --csv --include-header
sh devSvrCli.sh --log2action --action --csv --include-header --file-path
/usr/MyCSVLogRecords/logrecords.csv
Exporting to SNMP
The snmp action directs the system to output logs to an SNMP server in SNMP format.
You must specify the SNMP community string and the SNMP server IP address that
receives the exported log records.
To export:
Login to the Device Server as root, then change to the utility directory by typing: cd
1.
/usr/netscreen/DevSvr/utils.
To export to a file, type:
2.
sh devSvrCli.sh --log2action --action --snmp <community> <server>
The Device Server exports all log records to the specified SNMP community and server.
Required
Meaning
Yes
Specifies where the system should
direct the output. For example,
myLogs.csv
No
Specifies that the system should print
the field name before each field.
Copyright © 2010, Juniper Networks, Inc.
Need help?
Do you have a question about the NETWORK AND SECURITY MANAGER 2010.2 - ADMINISTRATION GUIDE REV1 and is the answer not in the manual?
Questions and answers