Splunk SOAR

Splunk SOAR Deletion of Container using filter (such as Label of the container and age of the Container)

imarri
Engager

I'm aiming to develop a Playbook in SOAR Phantom to automate the deletion of containers(using label) older than one week. Can you guide me on which App to utilize for container management and how to implement appropriate filters in the Action Block?

Labels (1)
0 Karma

SOARt_of_Lost
Path Finder

I can't speak to an app, but this sounds easy enough to do with the API. You'd need to build a way to loop through containers, pull the relevant date info, then decide which ones to delete. Some useful links

# See the fields you're able to work with
my_query_url = phantom.build_phantom_rest_url('container','[id]')
my_response_json = phantom.requests.get(my_id_url, verify=False).json()
phantom.debug(my_response_json)

 

0 Karma
Get Updates on the Splunk Community!

Bridging the Gap: Splunk Helps Students Move from Classroom to Career

The Splunk Community is a powerful network of users, educators, and organizations working together to tackle ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...