IBM Support

QRadar Suite (Cloud Pak for Security): How to extend the default script execution Timeout and MaxLines Limit ?

How To


Summary

This article provides a solution how to solve this error. "The script was running longer than the timeout period of 5 seconds or the script length was more than 50,000 lines."
This error is coming from customised email parse or function scripts.

Objective

This article provides a solution how to solve this error.  This article provides a solution how to solve this error. "The script was running longer than the timeout period of 5 seconds or the script length was more than 50,000 lines."
This error is coming from customrized email parse or function scripts.

Steps

The way to increase the default line limit and timeout on CP4S is to change the RESILIENT script related environment variables in the isc-cases-python3-scripting-service-cp4s  serverless service in the cp4s-sandbox namespace. The python3 pods will restart automatically.
e.g Increase RESILIENT_MAX_SCRIPT_LINES from 50,000 to 100,000
and
RESILIENT_MAX_SCRIPT_TIMEOUT from 5 to 15 as below:
image-20250304094210-2

Additional Information

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSTDPP","label":"IBM Cloud Pak for Security"},"ARM Category":[{"code":"a8m0z0000001h8pAAA","label":"Support-\u003ECases"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
03 March 2025

UID

ibm17184737