Skills

Splunk. Ship deploy results to Splunk so you can search and alert on them.

v2.0.0by musterDeploys, Rollbacks, Fleet

muster skill marketplace splunk
Source
A Splunk search for sourcetype muster:deploy returning one event with the service, hook, status and hostname fields.
sourcetype="muster:deploy" status=success

1 event · last 15 minutes

{
"service": "web"
"hook": "post-deploy"
"status": "success"
"hostname": "build-1"
}

host = build-1 · sourcetype = muster:deploy

Set up in three steps. Everything stays on this machine.

  1. Install it

    muster skill marketplace splunk
  2. Add your credentials

    muster skill configure splunk

    It asks for:

    • HEC URL
      MUSTER_SPLUNK_HEC_URL

      https://your-splunk:8088/services/collector/event

    • HEC tokenhidden while you type
      MUSTER_SPLUNK_HEC_TOKEN

      Settings › Data Inputs › HTTP Event Collector › New Token

    Values go in the skill’s config.env, which muster loads before each run.

  3. Turn it on

    muster skill enable splunk

    From now on it runs by itself. Test it any time with muster skill run splunk.

When it runs. The hooks it listens to.

post-deploy
After each service deploys
post-rollback
After each rollback
fleet-deploy-end
A fleet deploy finishes
fleet-machine-deploy-end
A machine finishes deploying
fleet-rollback-end
A fleet rollback finishes

Needs curl on the machine that deploys.