Splunk Enterprise Security

unable to update "action.notable" via API

cha_18
Engager

I am trying to update a detections config in ES via API with a bash script.

All of the below is working and updating the parameters other than updating action.notable and action.email which i cant seem to be able to , i have tried all the values i can think of in there eg 1, true, "1" but none are working, is this something that anyone has seen before?



curl -k -u "$USERNAME:$PASSWORD" \
"https://essplunk.company.org:8029/servicesNS/nobody/<APP>/saved/searches/Threat%20-%20DetectionName%20-%20Rule" \
  -X POST \
  -d disabled=true \
  -d search=index="search" \
  -d description="Updated search for bad events" \
  -d action.email=0 \
  -d action.notable=0 \
  -d action.email.subject="hello" \
  -d action.email.message.alert="hello"\
  -d action.email.to=email@company.com \
  -d action.email.useNSSubject=1\
  -d action.email._command_backup="whatever" \
  -d action.email.use_ssl=true \
  -d action.nbtstat.param.verbose="1"

 

Labels (1)
0 Karma
1 Solution

cha_18
Engager

Worked it out, so posting here in case anyone else needs it...

rather than 

-d action.notable=true

you would need to set the parameters like the below:

-d actions=notable

 

if you want multiple you would need a comma separated list eg below

-d actions=email,notable

 

if you did it like the below then you would only get one of the ARs applied 

 

-d actions=notable 
-d actions=email

 


View solution in original post

cha_18
Engager

Worked it out, so posting here in case anyone else needs it...

rather than 

-d action.notable=true

you would need to set the parameters like the below:

-d actions=notable

 

if you want multiple you would need a comma separated list eg below

-d actions=email,notable

 

if you did it like the below then you would only get one of the ARs applied 

 

-d actions=notable 
-d actions=email

 


Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...