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.  How to exit() a script

    Posted 06/18/24 10:25 AM

    Hi all,

    In python, there is the exit() function when you need to end a script prematurely.

    When used in a SOAR script, I get this error message:

    I tried with the sys.exit() command but the sys module cannot be imported because it is not allowed.

    Is there another way to prematurely stop a script in SOAR?



    ------------------------------
    Pierre Dufresne
    ------------------------------


  • 2.  RE: How to exit() a script

    Posted 07/17/24 01:50 AM

    this might be a stupide solution, try on your own responsibility, but could u put the script in an infinite loop and break out of the loop when the condition is met and at the end of the script ? 



    ------------------------------
    mohamad islam hamadieh
    ------------------------------