Building AQL queries
The Ariel Query Language (AQL) is a structured query language that you use to query and manipulate event and flow data from the Ariel database in IBM QRadar.
About this task
To learn more about AQL, see Ariel Query Language.
- If you receive the message “The cluster is busy processing other requests and does not respond to your queries,” wait a few minutes and try again.
- When you use the Visual Builder, you must press Enter after you type the value. You can also press Enter and Shift to add multiple values.
Procedure
Results
When a query is run, an 'active-query' card is added. Each query expires 14 days after it is created.
Example
Returns all the fields from the events table that were sent in the last 10 minutes.
SELECT * FROM events LAST 10 MINUTES
Returns the sourceip and destinationip from the events table
that were sent in the last 24 hours.
SELECT sourceip,destinationip FROM events LAST 24 HOURS
Returns all the fields from the events table during that time interval.
SELECT * FROM events START '2021 01 01 9:00:00' STOP '2021 01 01
10:20:00'
Returns all the fields in the events table sent in the last 24 hours, sorting the output from highest to lowest magnitude.
SELECT * FROM events ORDER BY magnitude DESC LAST 24 HOURS
Returns all the fields from the events table that have the specified text in the output.
SELECT * FROM events WHERE TEXT SEARCH 'firewall'
For more information, see Sample AQL queries.