Hi Jonthan,
Thanks for your response. Below are details as you required.
1.Script which I'm using and the curl command:
offenseid=$1
token="xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"
qip="20.85.219.70"
cmd1="curl -S -X GET -H 'SEC: $token' -H 'Version:12.0' -H 'Accept: application/json' 'https://$qip/api/siem/offenses/$offenseid' --insecure"
output=$(eval $cmd1)
#echo $output
source=$(echo $output | jq .offense_source | tr -d \")
2.Offense retention is 30 days
3.If execute the above mentioned command manually i'm able to get the results.
4.I have generated the new offenses to to test this, but no luck.
5.Version 7.4.2 Patch1
As I mentioned in the description offense id is getting passed to script as a argument while im using network property. But RestAPI query throwing an error. I printed that command in the test and if run that manually from CLI its providing an result.
I contacted the support and got a response as of now passing offense ID to custom action is not in scope. But I'm surprised that value is getting passed. Only issue is if the value is given by network property then Restapi throwing an error.
#QRadar#Support#SupportMigration