Splunk n8n integrationAutomate Splunk with n8n.
Splunk holds the logs, and every other tool you work in holds the follow-up. The Splunk n8n integration closes that gap: 16 operations across 4 resources let a workflow start a search job, read what it returned, manage saved reports and handle user accounts. Written for teams already running Splunk Enterprise.
Verified Trustpilot reviews · AI, automation & growth agency
What does the Splunk n8n integration actually do?
The Splunk n8n integration is the built-in Splunk node, which talks to the Splunk Enterprise API from inside a workflow. It groups 16 operations under 4 resources: Alert for fired alerts reports and metrics, Search for the jobs that run your SPL queries and the results they produce, Report for saved search reports, and User for accounts and roles. You build the workflow once, and it runs on a schedule or off any other trigger in n8n.
Start with the alerting side, because it needs the least setup. A Schedule Trigger, a node that fires a workflow at a fixed interval, runs alert.getReport at the top of each shift. The fired alerts report comes back, the workflow shapes a short digest, and it lands in Slack. The handover starts from what actually fired, not from whoever remembered to look.
The second pattern is a search that ends somewhere other than Splunk. search.create submits the SPL query, search.getResult brings back the rows, and the workflow writes them into Google Sheets for a capacity review that finance and engineering read together. Same shape works for any destination n8n can reach.
The third one is account lifecycle. Someone joins, user.create opens the Splunk account with the roles that team needs. Someone changes team, user.update swaps the roles. Someone leaves, user.deleteUser closes it. Splunk becomes one more node in the onboarding workflow you already maintain, instead of a ticket nobody picks up.
For anything outside those 16 operations, the HTTP Request node calls any endpoint of the Splunk Enterprise API and reuses the same credential through predefined authentication, so you are not creating a second set of tokens to go one step further.
Two things are worth knowing before you build. Free trial Splunk Cloud Platform accounts have no access to the REST API, so a trial instance will not answer the node at all, whatever the credential says. And on every list operation, Return All left off stops n8n at Limit, which is the difference between a sample and a full export. If n8n itself is the newer half of this pairing, the n8n review covers what the platform is and where it fits.
How do you connect Splunk to n8n?
- 01
Enable token authentication in Splunk
Token authentication stays off until someone turns it on. In your Splunk Enterprise instance, open Settings > Tokens, enable it, and create the auth token from that same screen. The role behind the account matters here:
edit_tokens_ownis the capability required to create a token for yourself,edit_tokens_allto create one for any user on the instance. Without the capability, the screen will not hand you a token. - 02
Create the Splunk credential in n8n
In n8n, open the Credentials menu and add a Splunk credential. The supported authentication method is the API auth token, and it asks for three things. Auth Token is the token you just generated. Base URL is your instance, protocol, domain and port included, in the shape of
https://localhost:8089. Allow Self-Signed Certificates, turned on, lets n8n connect even when SSL validation fails. - 03
Pick a resource and an operation on the node
Drop the Splunk node into a workflow and select that credential from its dropdown list. A credential is created once and reused by every workflow after it, so this is the last time you paste the token. Then choose the resource, Alert, Report, Search or User, and the operation under it. The node ships with n8n on n8n Cloud and on a self-hosted instance alike: nothing to install, nothing extra to pay on the n8n side.
What can the Splunk node do in a workflow?
The Splunk node exposes 16 operations across 4 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.
| Resource | Create From Search | Get | Get Many | Update | Delete | Delete | Delete | Get Metrics | Get Fired Alerts | Get Result |
|---|---|---|---|---|---|---|---|---|---|---|
| Alert | ✓ | ✓ | ||||||||
| Report | ✓ | ✓ | ✓ | ✓ | ||||||
| Search | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
| User | ✓ | ✓ | ✓ | ✓ | ✓ |
Operations index
Alert
2 operationsGet a fired alerts report
alert.getReportWhat you see in n8n
Notes & use cases
Splunk keeps a record of the alerts that have fired, and this operation retrieves that report into the workflow. There is nothing to fill in: choose the Alert resource, run the node, and the report arrives as items the following nodes can read.
Get metrics
alert.getMetricsWhat you see in n8n
Notes & use cases
Metrics sit under the same Alert resource and also come back with a single call, no fields to complete. The operation retrieves metrics from the instance and hands them to the workflow as regular items.
Report
4 operationsCreate a search report
report.createWhat you see in n8n
Notes & use cases
A search job that produced something worth keeping can become a saved search report. That is what this operation creates, from an existing job rather than from a query typed again.
Key parameters
- Search Job: the job the report is built from, required, picked in the node's list or supplied as an ID from an earlier step with an expression such as
{{ $json.field }}. - Name: optional, the name of the report. Set it and the report is findable later by a human.
Delete a search report
report.deleteReportWhat you see in n8n
Notes & use cases
Saved reports accumulate, especially the ones a workflow created. This operation removes one from Splunk, and it takes nothing beyond the report itself, which makes it the closing node of a cleanup branch rather than a workflow of its own.
Key parameters
- Report: the report to remove, required, selected in the node or identified by ID through an expression.
Get a search report
report.getWhat you see in n8n
Notes & use cases
Reading one saved report back into a workflow is the job here. Splunk returns that single report, and every node downstream works on what came back.
Key parameters
- Report: which report to retrieve, required, chosen in the node's list or passed as an ID, for instance
{{ $json.field }}when a previous node decided which one.
Get many search reports
report.getAllWhat you see in n8n
Notes & use cases
Listing the saved search reports gives a workflow something to iterate over, which is where most cleanup and audit logic starts.
Key parameters
- Return All: on, n8n walks the API pages and brings back every report; off, it stops at Limit.
- Limit: the maximum number of reports returned while Return All is off.
- Add Orphan Field: adds a boolean to each saved search showing whether it is orphaned, meaning it has no valid owner.
Search
5 operationsCreate a search job
search.createWhat you see in n8n
Notes & use cases
Everything else in the Search resource depends on this one: the operation submits a query and creates the search job that runs it on the instance.
Key parameters
- Query: required, the search language string to execute, written in Splunk's Search Processing Language. The node shows the expected shape,
search index=_internal | stats count by source. - Earliest Time and Latest Time: in Additional Fields, the earliest and latest cut-off for the search, both inclusive.
- Max Time: seconds to run before finalizing. Enter
0to never finalize.
Delete a search job
search.deleteJobWhat you see in n8n
Notes & use cases
Jobs stay on the instance once they have run. Removing them is what this operation does, and an automated workflow that runs every hour is exactly the kind that would otherwise leave a long trail behind it.
Key parameters
- Search Job: required, the job to delete, chosen in the node or carried from the step that created it.
Get a search job
search.getWhat you see in n8n
Notes & use cases
This operation retrieves a single search job and returns it to the workflow, without asking for the rows it produced. It is the step you put between creating a job and requesting its result.
Key parameters
- Search Job: required, the job to retrieve, selected in the node or referenced by ID through an expression.
Get many search jobs
search.getAllWhat you see in n8n
Notes & use cases
Rather than one job by ID, this returns many of them at once, which is how you get a view of what is sitting on the instance.
Key parameters
- Return All: brings back every search job by paging through the API; left off, the node stops at Limit.
- Limit: how many jobs come back when Return All is off.
Get the result of a search job
search.getResultWhat you see in n8n
Notes & use cases
Results are the reason the search was run. This operation gets them from a job and turns them into items the rest of the workflow can route, filter and write somewhere else.
Key parameters
- Search Job: required, the job whose result you want, usually the one created upstream and referenced with an expression like
{{ $json.field }}. - Return All and Limit: all rows, or the first batch up to Limit.
- Key-Value Match: a key-value pair to match against. Key set to
userand Field set tojohnreturns only the results whereuserisjohn. - Add Summary to Metadata: includes field summary statistics in the response.
User
5 operationsCreate a user
user.createWhat you see in n8n
Notes & use cases
Opening a Splunk account from a workflow means this operation, which creates the user on the instance with the roles it needs on day one.
Key parameters
- Name: required, the login name of the user.
- Roles: required, the roles to assign, chosen from the list or specified as IDs through an expression.
- Password: required.
- Email and Full Name: in Additional Fields, the address and the full name of the user.
Delete a user
user.deleteUserWhat you see in n8n
Notes & use cases
Offboarding ends with the account itself, and this operation removes it from Splunk. One field, no options, which is deliberate for an irreversible step.
Key parameters
- User: required, the account to remove, picked in the node or passed as an ID from the step that identified the leaver.
Get a user
user.getWhat you see in n8n
Notes & use cases
One account, one lookup. The operation retrieves a single user from Splunk and returns it, which is enough for a workflow that has to check something about a person before acting.
Key parameters
- User: required, the account to retrieve, selected in the node or referenced by ID with an expression.
Get many users
user.getAllWhat you see in n8n
Notes & use cases
Who has access to the instance is a question that comes up every audit, and this operation answers it by returning many users in one run.
Key parameters
- Return All: every account on the instance, page after page; off, the node returns the first ones only.
- Limit: the ceiling on accounts returned when Return All stays off. On an access review, leaving it in place is how you end up with a partial list and a false sense of a clean audit.
Update a user
user.updateWhat you see in n8n
Notes & use cases
People move teams and roles follow, which this operation handles: it updates an existing account rather than replacing it.
Key parameters
- User: required, the account being updated.
- Role Names or IDs: in Update Fields, the roles to assign, from the list or as IDs through an expression.
- Email, Full Name, Password: the other Update Fields, each applied only when filled in.
Need help automating Splunk with n8n?
A person reads every message.
