Splunk SOAR

Phantom Add Artifact Error - source_data_identifier

linuts
Engager

Hello, whenever I try to add a new artifact I got the following error

phantom.act(): 'add_artifact_1' cannot be run on asset 'phantom helper'. The "add artifact" action requires the following parameters: source_data_identifier. The given parameters look like they were automatically generated by phantom.act() because an empty parameters list was passed to phantom.act(). The parameters list may have been empty because the preceding call to phantom.collect2() returned an empty list. Check your calling code in the action that generated this error

 

I presume is the container identifier, but how could I reference it in the playbook?

 

Labels (2)
0 Karma
1 Solution

phanTom
SplunkTrust
SplunkTrust

@linuts the source_data_identifier has to be set for each artifact and completely unique for each too. This may be done best by writing out the api yourself as according to the docs, a none entry for the identifier field will generate one for you, not sure why the app doesn't do it (https://docs.splunk.com/Documentation/Phantom/4.9/PlaybookAPI/ContainerAPI#add_artifact). If you set the container:id as the identifier you will be allowed to add 1 artifact to that container before you get an error as the identifier is already in use. 

View solution in original post

phanTom
SplunkTrust
SplunkTrust

@linuts the source_data_identifier has to be set for each artifact and completely unique for each too. This may be done best by writing out the api yourself as according to the docs, a none entry for the identifier field will generate one for you, not sure why the app doesn't do it (https://docs.splunk.com/Documentation/Phantom/4.9/PlaybookAPI/ContainerAPI#add_artifact). If you set the container:id as the identifier you will be allowed to add 1 artifact to that container before you get an error as the identifier is already in use. 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...