IBM QRadar

IBM QRadar

Join this online topic group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Security
#QRadar
#SecuringhybridcloudandAI
 View Only
  • 1.  Write AQl query to sort source IP address based on total event count

    Posted 06/26/25 11:59 AM

    Hello Experts,

    I am novice to writing AQL queries, would appreciate if you can provide me the AQL query, to sort source IP address based on total event count. I will build my other queries based on this.

    Thank you very much in advance

    Umamaheshwar



    ------------------------------
    Umamaheshwara Manekar
    ------------------------------


  • 2.  RE: Write AQl query to sort source IP address based on total event count

    Posted 06/27/25 07:32 AM

    If I understood the question correctly, you need a grouped search, e.g. 

    SELECT sourceip as "SRCIP", destinationip as "firstDSTIP", UNIQUECOUNT(destinationip) as (DSTIPcount), QIDNAME(qid) as "Event", COUNT() as "EventsCount"
    FROM EVENTS
    GROUP BY SRCIP 
    ORDER BY EventsCount DESC
    LAST 2 HOURS



    ------------------------------
    Dusan VIDOVIC
    ------------------------------



  • 3.  RE: Write AQl query to sort source IP address based on total event count

    Posted 06/28/25 03:04 PM
    Edited by Umamaheshwara Manekar 06/28/25 03:17 PM

    Hello Dusan ViDOVIC,

    Thank you very much for your reply and the AQL query, I modified the query to print required columns, and it works.

    One question in this context is, Is it possible to generate a PDF report including charts and table of this AQL query? If so, could you please share the steps on how to achieve it?

    Thanks in advance.

    Uma



    ------------------------------
    Umamaheshwara Manekar
    ------------------------------



  • 4.  RE: Write AQl query to sort source IP address based on total event count
    Best Answer

    Posted 06/29/25 09:00 AM

    You need to save the search (under whichever name you like) and then use the reports wizard to create a report where you will select he search you previously saved and adjust the presentation to your preference.



    ------------------------------
    Dusan VIDOVIC
    ------------------------------



  • 5.  RE: Write AQl query to sort source IP address based on total event count

    Posted 06/29/25 12:00 PM

    Thanks @Dusan VIDOVIC for your response. I was able to create a report.



    ------------------------------
    Umamaheshwara Manekar
    ------------------------------