Splunk and SpockOps
Send every deployment decision, policy change and signed checkpoint to Splunk, through the HTTP Event Collector or Amazon S3, beside the GitHub audit log you already index.
Many security teams already index GitHub's audit log in Splunk. It shows who changed a setting, a permission or a protection rule. SpockOps adds the record of how change was governed: each deployment decision with the rules behind it, each review and outcome, and every change to the policies themselves. It arrives in GitHub's format, beside the data you already search.
What does Splunk already receive from GitHub? #
GitHub Enterprise Cloud can stream its audit log straight to Splunk's HTTP Event Collector, and Splunk's own Splunk Add-on for GitHub gives those events the github:cloud:audit source type. Together they make a sound record of change to GitHub itself: membership, permissions, repository settings, secrets and environments.
For most Splunk teams this is already working, with searches and alerts built on its fields. Nothing on this page changes it. SpockOps arrives as a second source type, spockops:chain, in the same shape, so the two can be searched side by side and joined on the fields they share: actor, org and repo.
What does SpockOps add in Splunk? #
It adds judgment to the record of configuration. GitHub's log can show that a deployment reached production and that a reviewer approved it. SpockOps adds which policies and rules it was checked against, which failed, whether a person, a bot or an AI agent asked for it, and whether those rules had been loosened beforehand.
SpockOps is a GitHub App that checks workflows, AI agents and deployments against a team's policies. Each policy either watches, in Evaluate, or enforces, in Block. Everything SpockOps decides, and every change to the policies it decides by, is written in order to a tamper-evident record called the governance chain. In Splunk, that record becomes:
- Deployment decisions, with each policy and rule checked, the rules that failed, the runner, and whether the actor was a person, a bot or an agent.
- Reviews and outcomes: who approved or rejected each deployment, and how it ended.
- Policy changes to workflow, agentic and deployment policies: who made them, what changed in plain words, whether the change weakened or widened the policy, and the reason given.
- Stream changes: any change to where the chain is sent, including this Splunk connection.
- Daily signed checkpoints, which let the copy in Splunk be checked against SpockOps' published keys.
Every event carries a short risk list drawn from a fixed vocabulary, such as bot_actor, failed_in_evaluate or policy_weakened. Detections can match on those values directly, without parsing summaries. The audit streaming overview describes the full chain and why it can be trusted.
Which route should a Splunk team use? #
There are two. SpockOps can send events straight to Splunk's HTTP Event Collector, or write them as files to an Amazon S3 bucket that Splunk reads through the Splunk Add-on for AWS. The collector is quicker to set up. The bucket keeps a complete copy in the firm's own account and suits a Splunk that cannot accept traffic from the internet.
| HTTP Event Collector | Amazon S3 | |
|---|---|---|
| How events arrive | SpockOps sends each batch to the collector, about a minute after it is recorded | SpockOps writes a file a minute to your bucket; the add-on picks it up |
| What Splunk needs | A collector reachable from the internet over HTTPS, and a token | The Splunk Add-on for AWS, with an SQS-based S3 input |
| What you keep outside Splunk | Nothing; Splunk's index is the copy | A complete copy in your own AWS account, under your own retention |
| Best for | Splunk Cloud, or a Splunk Enterprise collector already exposed to GitHub | Splunk Enterprise behind a firewall, and firms that want a copy they can verify independently |
The routes can run together. A common arrangement for a regulated firm is the collector for searches and alerts, and a bucket as the lasting record of evidence. Both use the same source type, so the same searches work on either.
How is the HTTP Event Collector route set up? #
In a few steps, by a Splunk administrator and a SpockOps administrator, who may be the same person. Splunk issues a token for a new collector input; SpockOps is given the collector's address and that token, confirms that Splunk accepts it, and begins sending. No workflow or repository changes.
In Splunk:
- Create an index for the chain, for example
spockops, with the retention your firm requires. A dedicated index keeps the governance record apart from operational logs and lets its retention be set on its own. - Create a token. Under Settings, Data inputs, HTTP Event Collector, add a new token, allow it to write to that index and make that index its default. SpockOps doesn't name an index on its events, so they land in the token's default. The source type can be left as it is: SpockOps labels every event
spockops:chainitself. Leave indexer acknowledgment off. - Make sure the collector uses HTTPS. On Splunk Enterprise, the collector's global settings must have SSL enabled. Splunk Cloud uses HTTPS already.
In SpockOps:
- Open the Audit streaming page under Settings, choose Splunk, then the HTTP Event Collector route.
- Enter the collector's host. For Splunk Enterprise this is the host and port, such as
splunk.example.com:8088. For Splunk Cloud it is the stack's input host, such ashttp-inputs-example.splunkcloud.com, with no port. - Paste the token. SpockOps stores it as a secret; it never appears in the chain or in any log.
- Confirm the connection. SpockOps sends Splunk an empty request. Splunk replies that it received no data only when the token is valid, so the check proves the token works without indexing a single event.
- Choose how much history to send: from now on, the whole chain, or everything from a chosen date. For an audit, send the whole chain, so the index holds the full period under review.
Within a minute or two the first events appear under sourcetype="spockops:chain". The stream's page in SpockOps shows how far it has delivered, and if Splunk ever refuses the token, the stream pauses and the workspace's administrators are emailed.
How is the Amazon S3 route set up? #
SpockOps writes one compressed file a minute to a folder in your bucket, in a folder layout modelled on GitHub's own stream. Amazon S3 announces each new file on an SQS queue, and the Splunk Add-on for AWS reads the queue and indexes the file. SpockOps is given permission to write to that one folder and nothing else.
In AWS:
- Choose a bucket and a folder. A firm that already streams GitHub's audit log to S3 can use the same bucket with its own folder; SpockOps uses
spockopsunless told otherwise. Files land at paths such asspockops/2026/11/16/09/31/21303b0e-73d6-5446-b1f4-627360e7912f.json.log.gz. - Create an IAM user for SpockOps with this policy, and an access key for it. The delete permission only lets SpockOps tidy up its connection check, and can be left out.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": ["s3:PutObject", "s3:DeleteObject"],
"Resource": "arn:aws:s3:::YOUR-BUCKET/spockops/*"
}]
}
- Send new files to an SQS queue. Add an event notification on the bucket for objects created under
spockops/with the suffix.json.log.gz, delivered to an SQS queue with a dead-letter queue, as the add-on expects. The suffix keeps SpockOps' small connection-check file out of Splunk.
In SpockOps:
- Open the Audit streaming page under Settings, choose Splunk, then the Amazon S3 route.
- Enter the bucket, its region and the folder, then the access key ID and secret. The key is stored as a secret and never written to the chain.
- Confirm the connection. SpockOps writes a small test file to the folder and removes it if it is allowed to. No events are sent.
- Choose how much history to send, as for the collector.
In Splunk:
-
Give Splunk the
spockops:chainsource type. Files from a bucket arrive as plain text, so Splunk needs to know that each line is one event and that its time is the record's own@timestamp, in epoch milliseconds, not the time the file was read. On Splunk Enterprise, add this toprops.conf(for example in$SPLUNK_HOME/etc/system/local/) and restart:[spockops:chain] SHOULD_LINEMERGE = false LINE_BREAKER = ([\r\n]+) TIME_PREFIX = "@timestamp": TIME_FORMAT = %s%3N MAX_TIMESTAMP_LOOKAHEAD = 16 TRUNCATE = 0 KV_MODE = json CHARSET = UTF-8On Splunk Cloud, where the files aren't editable, create the same source type under Settings, Source types, New Source Type: events broken at every line, the timestamp after
"@timestamp":in the format%s%3N, and JSON field extraction. The collector route doesn't need this step: its events carry their time with them. -
Add an SQS-based S3 input in the Splunk Add-on for AWS, pointing at the queue.
-
Set its source type to
spockops:chainand its index to the one chosen for the chain. Using the same source type as the collector route means every search on this page works on both.
With the source type in place, Splunk decompresses each file, indexes one event per line and dates each at the record's own time. Because the files stay in your bucket, a complete copy exists outside both SpockOps and Splunk.
What do the events look like in Splunk? #
Each event is a JSON object in GitHub's audit log shape, so Splunk extracts its fields automatically. GitHub's common fields sit at the top level, as they do under github:cloud:audit. Everything SpockOps adds sits under spockops, and lists appear with Splunk's usual {} suffix, such as spockops.risk{}.
| Field | What it holds |
|---|---|
action |
The kind of record, such as spockops_deployment.decision, spockops_deployment.review, spockops_policy.update or spockops_chain.checkpoint |
actor, org, repo |
As in GitHub's own events, so the two source types join cleanly |
spockops.actor_kind |
person, bot or agent |
spockops.outcome |
The verdict or result, such as approved, rejected or success |
spockops.environment, spockops.production |
Where the deployment was going, and whether GitHub marks that environment as production |
spockops.mode, spockops.failed_rules{} |
Whether the policy was in Evaluate or Block, and the rules that failed, as Policy › Rule |
spockops.policy.*, spockops.changes{}.text, spockops.reason |
For policy changes: which policy, what changed in plain words, and the reason given |
spockops.risk{} |
The fixed risk values this event carries |
spockops.seq, spockops.prev_hash, spockops.record_hash |
The event's place in the chain |
Which searches should a team start with? #
Five searches cover the questions a security team is most often asked about change. Each runs against the index chosen for the chain; replace spockops if yours differs.
Bots and agents deploying to production. A short search, and one whose answer is rarely what a team expects:
index=spockops sourcetype="spockops:chain" action="spockops_deployment.decision"
spockops.production=true spockops.actor_kind IN ("bot", "agent")
| table _time, repo, actor, spockops.actor_kind, spockops.environment, spockops.outcome
Deployments that went through although a rule failed. These are the deployments a policy in Evaluate allowed, and the first candidates for moving that policy to Block:
index=spockops sourcetype="spockops:chain" "spockops.risk{}"="failed_in_evaluate"
| stats count, latest(_time) as last_seen by repo, "spockops.failed_rules{}"
| sort - count
Policies loosened or removed. Every weakening, widening or deletion of a workflow, agentic or deployment policy, with the reason given:
index=spockops sourcetype="spockops:chain" action="spockops_policy.*"
"spockops.risk{}" IN ("policy_weakened", "policy_widened", "policy_deleted")
| table _time, actor, spockops.policy.kind, spockops.policy.name, "spockops.changes{}.text", spockops.reason
As an alert, the same search narrowed to "spockops.risk{}"="relaxed_without_reason" flags any control loosened without an explanation.
Deployments no policy covered. A deployment SpockOps saw but no policy applied to is a gap in coverage, not a failure:
index=spockops sourcetype="spockops:chain" "spockops.risk{}"="no_policy_applied"
| stats count by repo, spockops.environment
One timeline for an incident. GitHub's events and SpockOps' records for a service, with every policy change in the same window. Replace github with the index that holds GitHub's audit log:
(index=github sourcetype="github:cloud:audit" repo="acme/payments-api")
OR (index=spockops sourcetype="spockops:chain" (repo="acme/payments-api" OR action="spockops_policy.*"))
earliest=-7d
| eval recorded_by=if(sourcetype="spockops:chain", "SpockOps", "GitHub")
| table _time, recorded_by, action, actor, spockops.summary
| sort _time
Read from the top, it places each GitHub settings change, each policy change with its reason, and each deployment decision in the order they happened.
How can a team show that the copy in Splunk is complete? #
In two ways, which answer different questions. A search in Splunk shows that no record is missing, because every record carries a sequence number with no gaps. SpockOps' verifier shows that no record was altered, by checking every hash and every daily signature against SpockOps' published keys. Together they let an auditor rely on what Splunk holds.
The search lists any break in the sequence. An empty result means the index holds every record in order:
index=spockops sourcetype="spockops:chain"
| rename spockops.seq as seq, spockops.workspace.schema as workspace
| sort 0 workspace, seq
| streamstats current=f last(seq) as previous_seq by workspace
| where seq - previous_seq > 1
| table workspace, previous_seq, seq
SpockOps' verifier, spockops-verify, does the checking. It is a single script, in Python or in Bash, downloaded from the Audit streaming page in SpockOps, and it needs no connection to SpockOps to run. It exits with 0 when everything holds and 1 when anything does not, naming each failure. The checks rest on standard SHA-256 hashes and Ed25519 signatures, so a team can also write its own in any language. It checks a file rather than an index: a team downloads the chain for the audit period from SpockOps and runs the verifier on that. The ledger and the receipt explains why an auditor values the chain, and automating DevOps audits how it supports testing every change rather than a sample.
What should a Splunk team know before relying on it? #
Four points are worth settling at the start. The collector must present a valid certificate; it must be reachable from the internet; every kind of record arrives, not only deployments; and the chain covers what SpockOps governs. None of these is unusual, but each affects how the input is set up.
- A valid certificate. SpockOps verifies the collector's certificate and will not send to one it cannot verify. A paid Splunk Cloud stack's input host on port 443 meets this. A Splunk Cloud free trial uses a different input host on port 8088, whose certificate may not.
- Reachable from the internet. SpockOps sends from its own cloud, over HTTPS. A collector inside a private network cannot be reached; the S3 route is the answer there, because the add-on pulls from AWS instead.
- The whole chain arrives. Policy changes, stream changes and checkpoints come with the deployment records. They are few in number, and they are what keeps the copy complete enough to verify.
- The chain covers what SpockOps governs. A deployment to an environment that does not use SpockOps' protection rule produces no decision. SpockOps shows which environments and workflows its policies cover, so gaps are visible rather than assumed.
Questions
How does SpockOps send data to Splunk?
Through Splunk's HTTP Event Collector, about a minute after each record is written, or as files in an Amazon S3 bucket that the Splunk Add-on for AWS reads through an SQS-based S3 input.
What source type do SpockOps events use?
spockops:chain. SpockOps sets it on every event sent to the collector, and the S3 input should be given the same source type so that searches work on both routes.
Does it replace the Splunk Add-on for GitHub?
No. The add-on indexes GitHub's audit log as github:cloud:audit. SpockOps adds a second source type in the same shape, and the two join on actor, org and repo.
Does the connection check index anything?
No. For the collector, SpockOps sends an empty request that Splunk answers only when the token is valid. For S3, it writes a small test file that an event notification filtered on .json.log.gz ignores.
Can a Splunk Enterprise instance behind a firewall receive the chain?
Yes, through the S3 route. SpockOps writes to the bucket and the Splunk Add-on for AWS pulls from it, so the collector never has to be reachable from the internet.
How can we prove the data in Splunk is complete?
Every record carries a sequence number, so a search can show there are no gaps. SpockOps' verifier then checks the hashes and daily signatures on a download from SpockOps.
SpockOps












