Splunk SOAR (f.k.a. Phantom)

Is there a way for us to check/test connectivity across a list of assets from within a playbook?

nongingerale
Explorer

Hi all - is there a way for us to check/test connectivity across a list of assets from within a playbook? I was looking through the documentation and haven't found information that says it is possible or not. I only see how to do it manually or with the rest api call app_status but no examples on how to use it within a playbook. Any help is appreciated!

0 Karma

phanTom
SplunkTrust
SplunkTrust

@nongingerale 

The 2 ways to get REST data in a playbook and use it are:

1. HTTP App 
2. phantom.requests.get()

You may have to jump through some other REST hoops to get what you want as the asset_status results have their own id with the asset_id as a field so you need to get the asset_id first. Then query asset_status to grab the data for the asset(s) you want to check. Then work out if the status is "success" or "failed" then <do something>

Personally I would use the phantom.requests.get() for this as it will give you more control and not make you need multiple playbook blocks. 

https://docs.splunk.com/Documentation/SOARonprem/6.0.2/PlaybookAPI/SessionAPI 

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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