Using Format-Specific Filters
To control how log records are exported, use format-specific filters. Some formats have
required and optional format-specific filters. Use format-specific filters
after
the specified
action.
NOTE:
To see all format-specific filters for a format, type:
sh devSvrCli.sh --log2action --action -- format
Exporting to XML
The xml action directs the system to output logs using the XML format. To export:
1.
Login to the Device Server as root, then change to the utility directory by typing:
cd
/usr/netscreen/DevSvr/utils
.
2.
To export to a file, type:
sh devSvrCli.sh --log2action --action --xml <file-path> <include-header>
The Device Server exports all log records to XML; each log record becomes an XML record,
which you can open in most Web browsers.
Using XML Required and Optional Format-Specific Filters
You can use the following required and optional format-specific filters for exporting to
XML:
Meaning
Required
Multiple
CSV
Specifies where the system should
direct the output. For example,
myLogs.xml
Yes
No
--file-path
Specifies that the system should print
the field name before each field.
No
No
--include-header
Viewing XML Format Output
To view the XML schema file, type:
/usr/netscreen/DevSvr/lib/logActions/log.xsd
To export predefined and custom attack category log records to an XML file located in
the /usr directory of the Device Server, use the
--category
common filter to specify the
categories:
sh devSvrCli.sh --log2action --category predefined --action --xml --file-path
/usr/MyXmlLogRecords/attacks.xml
Exporting to CSV
The csv action directs the system to output logs using the CSV format. To export:
803
Copyright © 2010, Juniper Networks, Inc.
Chapter 19: Logging
Содержание NETWORK AND SECURITY MANAGER 2010.4 - ADMININISTRATION GUIDE REV1
Страница 6: ...Copyright 2010 Juniper Networks Inc vi...
Страница 36: ...Copyright 2010 Juniper Networks Inc xxxvi Network and Security Manager Administration Guide...
Страница 52: ...Copyright 2010 Juniper Networks Inc 2 Network and Security Manager Administration Guide...
Страница 90: ...Copyright 2010 Juniper Networks Inc 40 Network and Security Manager Administration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 96 Network and Security Manager Administration Guide...
Страница 236: ...Copyright 2010 Juniper Networks Inc 186 Network and Security Manager Administration Guide...
Страница 292: ...Copyright 2010 Juniper Networks Inc 242 Network and Security Manager Administration Guide...
Страница 314: ...Copyright 2010 Juniper Networks Inc 264 Network and Security Manager Administration Guide...
Страница 368: ...Copyright 2010 Juniper Networks Inc 318 Network and Security Manager Administration Guide...
Страница 370: ...Copyright 2010 Juniper Networks Inc 320 Network and Security Manager Administration Guide...
Страница 484: ...Copyright 2010 Juniper Networks Inc 434 Network and Security Manager Administration Guide...
Страница 584: ...Copyright 2010 Juniper Networks Inc 534 Network and Security Manager Administration Guide...
Страница 588: ...Copyright 2010 Juniper Networks Inc 538 Network and Security Manager Administration Guide...
Страница 600: ...Copyright 2010 Juniper Networks Inc 550 Network and Security Manager Administration Guide...
Страница 678: ...Copyright 2010 Juniper Networks Inc 628 Network and Security Manager Administration Guide...
Страница 694: ...Copyright 2010 Juniper Networks Inc 644 Network and Security Manager Administration Guide...
Страница 700: ...Copyright 2010 Juniper Networks Inc 650 Network and Security Manager Administration Guide...
Страница 706: ...Copyright 2010 Juniper Networks Inc 656 Network and Security Manager Administration Guide...
Страница 708: ...Copyright 2010 Juniper Networks Inc 658 Network and Security Manager Administration Guide...
Страница 758: ...Copyright 2010 Juniper Networks Inc 708 Network and Security Manager Administration Guide...
Страница 788: ...Copyright 2010 Juniper Networks Inc 738 Network and Security Manager Administration Guide...
Страница 882: ...Copyright 2010 Juniper Networks Inc 832 Network and Security Manager Administration Guide...
Страница 908: ...Copyright 2010 Juniper Networks Inc 858 Network and Security Manager Administration Guide...
Страница 918: ...Copyright 2010 Juniper Networks Inc 868 Network and Security Manager Administration Guide...
Страница 920: ...Copyright 2010 Juniper Networks Inc 870 Network and Security Manager Administration Guide...
Страница 1005: ...PART 6 Index Index on page 957 955 Copyright 2010 Juniper Networks Inc...
Страница 1006: ...Copyright 2010 Juniper Networks Inc 956 Network and Security Manager Administration Guide...