Summary of Contents for Juniper SECURITY THREAT RESPONSE MANAGER 2008.2 - AQL EVENT AND FLOW QUERY CLI GUIDE
Page 1
Security Threat Response Manager AQL Event and Flow Query CLI Guide Release 2008.2 Juniper Networks, Inc. 1194 North Mathilda Avenue Sunnyvale, CA 94089 408-745-2000 www.juniper.net Part Number: 530-xxxxxx-01, Beta Draft...
Page 2
Juniper Networks or their respective owners. All specifications are subject to change without notice. Juniper Networks assumes no responsibility for any inaccuracies in this document or for any obligation to update information in this document. Juniper Networks reserves the right to change, modify, transfer, or otherwise revise this publication without notice.
ONTENTS BOUT UIDE Conventions Technical Documentation Documentation Feedback Requesting Support AQL Q SING THE UERY About the AQL Query CLI Accessing the AQL Query CLI Using a Select Statement Using Where Clauses Using the Group By Clause Using the Order By Clause Using the Count(*) Clause Using the Distinct Clause Using the Count (Distinct ...) Clause...
Information that alerts you to potential personal injury. Technical You can access technical documentation, technical notes, and release notes Documentation directly from the Juniper networks Support Web site at http:// www.juniper.net/support Documentation We encourage you to provide feedback, comments, and suggestions so that we Feedback can improve the documentation.
BOUT UIDE Requesting • Open a support case using the Case Management link at Support or call 1-888-314-JTAC (from the United States, http://www.juniper.net/support/ Canada, or Mexico) or 1-408-745-9500 (from elsewhere). AQL Event and Flow Query CLI Guide...
AQL Q SING THE UERY You can use the AQL Event and Flow Query Command Line Interface (CLI) to access flows and events stored in the Ariel database. This document provides information on accessing and using the AQL query CLI including: About the AQL Query CLI •...
AQL Q SING THE UERY The non-interactive mode does not include a prompt allowing you to redirect the output to a file with a regular UNIX pipe syntax. By default, the results are sent to a standard output. Accessing the AQL To access the AQL query CLI: Query CLI Log in to STRM, as root.
Using a Select Statement For example: If you wish to enter a command in interactive mode: /opt/qradar/bin/arielClient -start 2007/08/11-01:15:00 -end 2007/08/11-01:17:00 -exectime 60 /opt/qradar/bin/arielClient /opt/qradar/bin/arielClient -start 2007/08/11-01:15:00 -end 2007/08/11-01:17:00 -f csv If you wish to enter a command in non-interactive mode: /opt/qradar/bin/arielClient -start 2007/08/11-01:15:00 -end 2007/08/11-01:17:00 -exectime 60 -execute "select * from flows where sourceIP = '231.12.37.17' and protocol != 'TCP.tcp_ip'"...
AQL Q SING THE UERY select <query item> from <flows|events> where <sourceCIDR|destinationCIDR> = ‘<CIDR Range>’ For example: select * from flows where sourceCIDR = '10.100.100/24' This command returns all flows coming from the 10.100.100 subnet. To capture flows coming from and into the subnet use the regular OR expression as follows: select * from events where sourceCIDR = '10.100.100/24' OR destinationCIDR = '10.100.100/24' Using Where...
Using the Order By Clause The output includes: ---------------------------------- | sourceIP | SUM_sourceBytes | ---------------------------------- | 64.124.201.151 | 4282590.0 | 10.105.2.10 | 4902509.0 | 10.103.70.243 | 2802715.0 | 10.103.77.143 | 3313370.0 | 10.105.32.29 | 2467183.0 | 10.105.96.148 | 8325356.0 | 10.103.73.206 | 1629768.0 ---------------------------------- However, if you compare this information to a non-aggregate query, the output...
AQL Q SING THE UERY For example: select sourceBytes, sourceIP from flows where sourceBytes > 1000000 order by sourceBytes Or, if you wish to display results in ascending order: select sourceBytes, sourceIP from flows where sourceBytes > 1000000 order by sourceBytes asc Combing the and the clauses in a single query is useful for...
Using the Materialize View Clause Using the clause allows you to produce query results as a static materialize view Materialize View view and run subsequent queries against the view. You can also specify the period Clause of time that the is accessible.
AQL Q SING THE UERY For example: If you wish to match names such as, Joe, Joanne, Joseph, or any other name beginning with Jo, enter the following clause: select * from events where userName like ‘jo%’ If you wish to match names beginning with Jo that are three characters long, such as, Joe or Jon, enter the following clause: select * from events where userName like ‘jo_’...
Page 17
Using the Describe Statement flowSource (TEXT) interface (TEXT) flowDirection (NUMERIC) geographic (TEXT) sourcePrecedence (NUMERIC) destinationPrecedence (NUMERIC) AQL Event and Flow Query CLI Guide...
Need help?
Do you have a question about the SECURITY THREAT RESPONSE MANAGER 2008.2 - AQL EVENT AND FLOW QUERY CLI GUIDE and is the answer not in the manual?
Questions and answers