StackStorm-Exchange / exchange-incubator

Submit your StackStorm integration and automation packs here.
12 stars 61 forks source link

New morpheus stackstorm integration pack #176

Open xod442 opened 2 years ago

xod442 commented 2 years ago

Pack for Morpheus

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

cognifloyd commented 2 years ago

I'm not sure about including the morpheus=>splunk workflow in this pack because I expect packs to focus on only one service. In any case, here's some feedback on that workflow + actions:

Passing around all of the logs like that could be resource intensive (eg the workflow context gets copied multiple times and it includes input parameters).

Maybe you could use the action_service to store an ID in the datastore: https://docs.stackstorm.com/actions.html#action-service So, in an action you

Also, to avoid passing large amounts of data via action input params, I would probably try to combine your actions. So, you could have one python action that:

That also has the benefit of simplifying the configuration so you don't need to know how to connect to mongo.

Another thought: You can extend the get_logs action with something like an after_id input parameter. Then inside the action it would filter the logs and only return log entries after that ID.