QRadar: AQL Tutorial Part 1. Documentation and basic syntax.

preview_player
Показать описание
Special Thanks to Mutaz Alsallal (IBM Poland) for the material shown here.
Here are some of the AQL commands so you can copy/paste:
select * from events START '2016-06-07 10:29:00' STOP '2016-06-07 13:53:00'
SELECT * FROM events WHERE magnitude BETWEEN 1 AND 5
SELECT * FROM events WHERE sourceip = '192.168.60.56' and destinationip != '64.4.44.76' START '2016-06-07 10:29:00' STOP '2016-06-07 13:53:00'
select * from events where not INCIDR('9.128.28.0/24',sourceip)
SELECT qidname(qid), * FROM events WHERE qidname(qid) ILIKE '%logon%' START '2016-06-07 10:29:00' STOP '2016-06-07 13:53:00'
Рекомендации по теме
Комментарии
Автор

wow I learnt too fast from your video thank you

anamariedevera
Автор

Hum, I do not think there is a way of adding comments in AQL and I do not see how practical that would be., unless you run them from a script or API call in which case you can documented as part of the script or python call. Please excuse me if I did not understand you question.

jbravovideos
Автор

Is there a way to suppress output columns?
For example if I want to do a sub-query that uses an aggregator, (eg. UNIQUECOUNT) I don't want the count column in the subquery.
eg. if this was the query how do I suppress the dcount column?
select computer, UNIQUECOUNT(signature) as dcount from events where signature is not null group by computer having dcount > 5 last 10 days.

simple-security
Автор

Is there a way to add comments to your AQL? or to comment out some of the lines?
eg.
select * from events
// where bob = "bob" // this line is commented out
// this is a comment //

simple-security
Автор

Hi Josh, I want help from you. I want to make a report of system health using AQL in which columns are elements, hostname, metricID (DiskSpaceUsed) and ('DiskSpaceTotal).
Following is the Query, I have an issue in that query it return actual data but return 2 rows of same columns, group by not working, kindly help me please

SELECT "Hostname", element AS Partiton_Name, MAX(value/(1024*1024*1024)) AS 'DiskUsedInGB', max(value/(1024*1024*1024)) AS 'DiskTotalSpace'
FROM events
WHERE LOGSOURCENAME(logsourceid)
ILIKE '%%health%%' AND "Metric ID"='DiskSpaceUsed' OR "Metric ID"='DiskSpaceTotal' GROUP BY element, "Metric ID"
LAST 2 MINUTES

Let me know if have any question
Thanks

umerahmed
Автор

Hi Jose!
How can I query through whole events(not just 5 minutes or a fixed period of time)?

lenashynkarenko