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
  • 1.  'nameError: name playbook' is not defined'

    Posted Thu March 24, 2022 09:13 AM
    Hello guys,

    I would like to print the results that i got from a previous QRadar Search function via a simple script. I am trying to access the results of the function by giving its output name; however, i keep on getting this error message. Any idea how to fix this?

    Thanks,
    Dany


    Script to access the results of the QRadar function


    Error Message


    ------------------------------
    Dany El-Nghaywe
    ------------------------------


  • 2.  RE: 'nameError: name playbook' is not defined'
    Best Answer

    Posted Thu March 24, 2022 02:05 PM
    Dany,

    The `playbook` object  will only be defined in scripts when the whole playbook runs.

    It looks like you may have ran the script with the 'Run' button when creating it?

    If you trigger the playbook then that script should work fine. Anytime you have a script that uses the playbook object you'll have to trigger the whole playbook to test it. You won't be able to use that run button. I'm hopeful there's a better solution than this that I don't know about.

    Hope this makes sense. Let us know if I'm wrong about my assumption with the run button.

    ------------------------------
    Liam Mahoney
    ------------------------------



  • 3.  RE: 'nameError: name playbook' is not defined'

    Posted Mon March 28, 2022 02:51 AM
    You are 100% correct. I have run the entire playbook and the script did run smoothly however, when i run it alone, it generates an error. Thank you so much

    ------------------------------
    Dany El-Nghaywe
    ------------------------------