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 --category custom --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:
1.
Login to the Device Server as root, then change to the utility directory by typing:
cd
/usr/netscreen/DevSvr/utils
.
793
Copyright © 2010, Juniper Networks, Inc.
Chapter 19: Logging
Содержание NETWORK AND SECURITY MANAGER 2010.3
Страница 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...
Страница 144: ...Copyright 2010 Juniper Networks Inc 94 Network and Security Manager Administration Guide...
Страница 146: ...Copyright 2010 Juniper Networks Inc 96 Network and Security Manager Administration Guide...
Страница 234: ...Copyright 2010 Juniper Networks Inc 184 Network and Security Manager Administration Guide...
Страница 310: ...Copyright 2010 Juniper Networks Inc 260 Network and Security Manager Administration Guide...
Страница 364: ...Copyright 2010 Juniper Networks Inc 314 Network and Security Manager Administration Guide...
Страница 366: ...Copyright 2010 Juniper Networks Inc 316 Network and Security Manager Administration Guide...
Страница 478: ...Copyright 2010 Juniper Networks Inc 428 Network and Security Manager Administration Guide...
Страница 576: ...Copyright 2010 Juniper Networks Inc 526 Network and Security Manager Administration Guide...
Страница 580: ...Copyright 2010 Juniper Networks Inc 530 Network and Security Manager Administration Guide...
Страница 592: ...Copyright 2010 Juniper Networks Inc 542 Network and Security Manager Administration Guide...
Страница 684: ...Copyright 2010 Juniper Networks Inc 634 Network and Security Manager Administration Guide...
Страница 690: ...Copyright 2010 Juniper Networks Inc 640 Network and Security Manager Administration Guide...
Страница 696: ...Copyright 2010 Juniper Networks Inc 646 Network and Security Manager Administration Guide...
Страница 698: ...Copyright 2010 Juniper Networks Inc 648 Network and Security Manager Administration Guide...
Страница 748: ...Copyright 2010 Juniper Networks Inc 698 Network and Security Manager Administration Guide...
Страница 778: ...Copyright 2010 Juniper Networks Inc 728 Network and Security Manager Administration Guide...
Страница 870: ...Copyright 2010 Juniper Networks Inc 820 Network and Security Manager Administration Guide...
Страница 872: ...Copyright 2010 Juniper Networks Inc 822 Network and Security Manager Administration Guide...
Страница 898: ...Copyright 2010 Juniper Networks Inc 848 Network and Security Manager Administration Guide...
Страница 908: ...Copyright 2010 Juniper Networks Inc 858 Network and Security Manager Administration Guide...
Страница 910: ...Copyright 2010 Juniper Networks Inc 860 Network and Security Manager Administration Guide...
Страница 995: ...PART 6 Index Index on page 947 945 Copyright 2010 Juniper Networks Inc...
Страница 996: ...Copyright 2010 Juniper Networks Inc 946 Network and Security Manager Administration Guide...