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 Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...