Alerting

How to resolve error: sendtophantom: Alert action script returned error code=1?

freddy_Guo
Path Finder

Hi, 

We have recently switched from Phantom to SOAR and I'm trying to send our triggered alerts to SOAR. 

I have tested that from Splunk Enterprise to SOAR connect and it works.

But I keep getting the following error for one alert

 

 

 

11-04-2022 05:31:21.724 +1100 WARN  sendmodalert [17285 AlertNotifierWorker-0] - action=sendtophantom - Alert action script returned error code=1

11-04-2022 05:31:21.724 +1100 INFO  sendmodalert [17285 AlertNotifierWorker-0] - action=sendtophantom - Alert action script completed in duration=1394 ms with exit code=1

 

 

 

 

Labels (1)
Tags (3)
0 Karma

splunkoptimus
Path Finder

I'm also having the same error. How did you fix it?

03-01-2023 15:00:20.084 +0000 WARN sendmodalert [36371 AlertNotifierWorker-0] - action=aws_sns_modular_alert - Alert action script returned error code=1
0 Karma

freddy_Guo
Path Finder

Did you make it work? What was your issue?

0 Karma

freddy_Guo
Path Finder

Hi @splunkoptimus,

 

Our issue was caused by a missing label. So we have label "threat" configured in Phantom but not in SOAR. So SOAR was throwing error due to no matching label found. 

Hopefully that helps. 

 

 

0 Karma

splunkoptimus
Path Finder

No, there were special characters in my lookup which caused the email alert_action python script to break. Once I removed the special characters email were sent out. 

0 Karma
Get Updates on the Splunk Community!

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...