IBM QRadar SOAR

IBM QRadar SOAR

Join this online user 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.

 View Only
Expand all | Collapse all

How to iterate through the results of a previous function (QRadar SIEM: QRadar Search)

  • 1.  How to iterate through the results of a previous function (QRadar SIEM: QRadar Search)

    Posted 30 days ago

    Dears,

    I am new to IBm SOAR and i am trying to implement a new playbook using mainly "QRadar SIEM: QRadar Search" functions.

    Below is a summary of the palybook:

    First node is initiated based on artifact:
    QRadar SIEM: QRadar Search
    Output name: node1_search

    node1_search results are as below:

    {'events': [{'username': 'user1', 'sourceIP': '1.1.1.1', 'starttime': '1747479611111'}],...etc}
    {'events': [{'username': 'user2', 'sourceIP': '2.2.2.2', 'starttime': '1747479622222'}],...etc}
    {'events': [{'username': 'user3', 'sourceIP': '3.3.3.3', 'starttime': '1747479633333'}],...etc}

    Second node is based on the previous results (events).

    QRadar SIEM: QRadar Search
    Output name: node2_search

    I need to add a new "QRadar SIEM: QRadar Search" that should iterate over the previous results and perform the below searched on Qradar:

    select destinationip from events where sourceip = '1.1.1.1' and starttime = '1747479611111' last 1 hour
    select destinationip from events where sourceip = '2.2.2.2' and starttime = '1747479622222' last 1 hour
    select destinationip from events where sourceip = '3.3.3.3' and starttime = '1747479633333' last 1 hour


    Kinldy advise if this iteration is doable and how it can be done?

    IF you need additional info please let me know.



    ------------------------------
    Nabil Nehme
    ------------------------------


  • 2.  RE: How to iterate through the results of a previous function (QRadar SIEM: QRadar Search)

    Posted 29 days ago

    Hi Nabil , 

    looping is not supported out of the box , but I was able to find a workaround.

    I have mentioned it here.

    repeat a function X time in a playbook | IBM QRadar SOAR



    ------------------------------
    Mohamad islam Hamadieh
    I post SOAR content and tips on linkedIn , follow me :)
    https://linkedin.com/in/mohamadislam
    ------------------------------