n8n with Elastic Security and Splunk for SOC case automation

Use n8n's built-in Elastic Security and Splunk nodes to create and update Elastic cases and pull Splunk fired alerts and search results for enrichment, on infrastructure you control.

On this page

How n8n connects to Elastic Security and Splunk for SOC case automation

n8n can serve as a lightweight SOAR layer beside a SIEM by calling two documented built-in nodes: the Elastic Security node and the Splunk node. Alerts arrive in the SIEM, and analysts want context attached before they open work, so the workflow pulls the fired alert or search result, enriches it, and then creates or updates the matching case. These are standard nodes shipped with n8n, not a custom connector you have to maintain. The Elastic Security node manages cases, case comments, case tags and connectors, including creating, updating and summarizing cases. The Splunk node can retrieve fired alert reports, manage saved search configurations and search jobs, read search results and manage users. Confirm the operations and their current parameters in the n8n Elastic Security node documentation and the Splunk node documentation before you design the flow, because node operations change between n8n releases.

Before any of this goes to production, settle the licensing question. n8n is licensed under the Sustainable Use License, which permits use for your own internal business purposes and non-commercial use. It is source-available, not OSI open source, so a SOC that wants to build a managed service for other organizations on top of it needs to read the license terms first. Files marked with .ee fall outside that license and require a valid n8n Enterprise License, so check which features your workflows depend on. Elastic has its own licensing layers as well. Elastic Security capabilities such as the detection engine, case management and endpoint prevention depend on the subscription tier you run, and the self-managed tiers differ in what they include. Ask your Elastic representative which tier covers the case management and connector features your analysts will use, and record the answer alongside your n8n license review.

Keep the scope of the automation narrow at the start. The safest first workflow reads one alert type, adds read-only enrichment, and writes a case comment rather than changing case status or closing cases. That gives analysts a visible result while you confirm credentials, permissions and error handling. Ask the Elastic and Splunk administrators to create dedicated service accounts with the minimum role needed for each operation, and store those credentials in n8n's credential store rather than in workflow expressions. Plan for the fact that n8n workflows run under a single automation identity, so every case change will be attributed to that identity in the target system. Check how each platform records that activity so your audit trail still shows what the workflow did and on whose authority.

What you need before building the Elastic and Splunk workflows

Before any node runs, four things must be settled: which n8n edition and version you run, which Elastic Security tier and deployment model you use, how Splunk API access is scoped, and how n8n reaches both systems and stores their credentials. Each card below is a decision or check that the build depends on.

Self-hosted n8n edition and version

The Elastic Security and Splunk nodes are built into n8n, so the Community edition can call both APIs. Pin one n8n version in your staging and production instances and record it, because node parameters and API handling change between releases. Confirm the node version your build uses against the release notes before you copy any example. Check whether your organization needs SSO or log streaming, since those sit in the Business and Enterprise plans.

Latest n8n release cited
2.43
n8n release notes

Elastic Security deployment model

Elastic Security runs on Elastic Cloud or self-managed clusters, and the case API your workflows call depends on that choice. Decide where the cluster lives, which Elastic Stack release line you target, and whether the Kibana endpoint is reachable from the n8n network. Confirm the Kibana case endpoints, API version and required privileges for your deployment with Elastic before you design the flow.

Elastic Security docs

Elastic subscription tier for case features

Case management and the detection engine are listed under Platinum on the self-managed subscriptions page, but Platinum is no longer sold to new customers. New self-managed buyers of paid security features choose between Basic and Enterprise, or move to Elastic Cloud. Check which features your analysts need, such as SAML or OIDC single sign-on and host isolation, and get the tier written into the quote before you assume the case workflow is available.

Elastic subscriptions

Splunk API access and account roles

The Splunk node reads fired alert reports, search configurations, search jobs and search results, so the account behind its credential needs read access to exactly those objects and nothing broader. Create a dedicated service user with a role scoped to the apps and indexes the workflows touch. Confirm the required capabilities and REST API version with Splunk and test the account against a non-production search head first.

Network paths and TLS trust

n8n must reach the Elastic and Splunk management APIs over HTTPS, which usually means firewall rules from the n8n workers, not from analyst laptops. Confirm the ports on each side, any proxy in between, and whether the n8n host must trust an internal certificate authority. Put the certificate chain into the n8n container or host trust store before testing, because a failed trust check often looks like an authentication error.

Credential storage and encryption key plan

Elastic API keys and Splunk tokens are stored as n8n credentials, encrypted with the instance encryption key. In queue mode, every worker and webhook processor needs that same key, so decide how the key is generated, stored and rotated before you add workers. Use a separate service identity per system, restrict who can edit credentials in n8n, and record which owner is responsible for rotating each token.

Configuration sequence for the Elastic and Splunk nodes

This sequence takes the n8n instance from encrypted credentials to a tested enrichment step, so each node is proven against known data before any case or alert automation runs in production. The result is a set of verified workflows the SOC can trust and extend.

  1. Create least-privilege accounts in Elastic and Splunk

    Your security engineering lead creates a dedicated service account in Elastic Security and a separate one in Splunk, each limited to the case, alert and search permissions that the planned workflows need. Confirm the exact role names and privileges in your Elastic and Splunk administration guides, because the permissions required for case creation, alert access and search jobs differ between versions and deployments. Record which account owns which workflow so that access reviews can trace each credential later. The step is done when each account can log in, and a direct API call with that account returns the expected resource without requesting broader rights.

  2. Store credentials with encryption before building workflows

    An n8n administrator adds an Elastic Security credential and a Splunk credential in the n8n credentials store, using the service accounts from the previous step rather than personal logins. Confirm that the instance's encryption key is backed up in a location separate from the database, since losing it makes stored credentials unreadable. If the instance runs in queue mode, confirm that the same encryption key reaches every worker and webhook processor node, because workers cannot read credentials otherwise. The step is done when each credential passes its built-in connection test and the key backup has been verified.

  3. Test the Elastic node against a known case

    A workflow engineer builds a manual test workflow with the Elastic Security node that reads one existing case chosen in advance, such as a case from a closed training exercise. The workflow should return the case title, status, severity, tags and comments in a form the team can inspect. Compare the returned fields against what the Elastic Security interface shows for the same case, and confirm that the operations the team plans to use are available with the account's permissions. The step is done when the test execution returns every expected field and the values match the case in Elastic.

  4. Build the case creation and update flow

    The engineer extends the workflow so it creates a test case in Elastic Security with a fixed naming pattern and a tag identifying it as an automation test, then updates that case with a comment and an added tag. Keep the test case separate from production cases until the flow is verified. Confirm that the node's case, comment and tag operations behave as expected for your Elastic version, since the node's supported fields can change between releases. The step is done when the test case appears in Elastic with the correct title, the comment and the tags, and a second execution updates the same case without creating a duplicate.

  5. Pull fired alerts from Splunk

    The engineer adds a Splunk node operation that retrieves fired alert reports for a saved alert the team has designated for testing. Compare the alert name, trigger time, result count and severity in the n8n output with the Splunk interface for the same alert. Confirm that the account can read the alert reports for its assigned scope and that the test alert fires on a known schedule or can be triggered by a controlled search. The step is done when the workflow returns the expected fired alert fields and the values match what Splunk shows.

  6. Run a saved search job and read its results

    The engineer configures the Splunk node to start a search job from a saved search that is limited to a short, known time range and a small, predictable data set. The workflow then reads the search results and passes the event count and key fields onward. Check that the job completes, that the result count matches a manual run of the same search in Splunk, and that the search runs under the service account's permissions. Test the workflow's handling of an empty result and of a failed or still-running job before connecting it to any case logic. The step is done when the saved search returns the expected rows and the failure paths produce a clear message.

  7. Add an enrichment step before updating the case

    The engineer inserts an enrichment step between the Splunk output and the Elastic case update. This step might add the search result count, the alert severity and a link back to the Splunk alert, using fields that the earlier tests confirmed. Use an illustrative test alert and a known case to confirm that the enriched details appear in the Elastic case comment and that tags reflect the enrichment outcome. Analysts should see the enriched case before any production alert reaches the queue. The step is done when a single end-to-end test run creates or updates the test case with the enriched fields, the tags and the comment all match the expected values, and the run log shows no errors.

How alerts and enrichment move between Splunk, n8n and Elastic

The flow starts with Splunk fired alerts and saved search results pulled by the n8n Splunk node. Workers in the n8n trust boundary enrich each finding, reading API credentials from the encrypted credential store, before the Elastic Security node creates or updates a case with comments and tags. Check that each SIEM connection uses its own least-privilege credential, that workers hold only the encryption key they need, and that enrichment never writes back to Splunk unless you planned it.

Alert and search data flowing from Splunk through n8n workers into Elastic Security cases.

Where n8n fits next to the SIEM and where it does not

n8n should own the case lifecycle and alert retrieval, and nothing that decides what is malicious. In this design, detection rule logic stays in Elastic Security, where the detection engine, prebuilt and custom rules, and machine learning anomaly detection live. Investigations stay in Timeline, and any containment action on an endpoint stays with Elastic Defend and its response tooling. On the Splunk side, n8n reads fired alert reports and search results and does not own the correlation searches that produce them. Write this boundary into the design document before the first workflow is built, because it determines which team gets paged when a rule misfires and which system holds the authoritative record.

In practice, n8n reads from Splunk through the Splunk node, which can retrieve fired alert reports, run search jobs and read their results, and writes to Elastic Security through the Elastic Security node, which can create, update and summarize cases, add comments and tags, and manage connectors. A typical enrichment workflow pulls a fired alert, runs a bounded lookup, attaches the result as a case comment and sets tags so analysts can filter the queue. Confirm the exact operations and field mappings for your node version in the node documentation, and confirm which API key scopes your Elastic and Splunk roles need, because n8n can only write what the credential allows. Restrict those credentials to the case and search functions the workflow uses.

n8n stops fitting when the work becomes stateful case management across many tools, approval chains with audit requirements, or playbooks that must run inside the SIEM itself. At that point a dedicated SOAR product may be the better fit, and the related topic on n8n for security automation with MISP and TheHive compares the two approaches for teams that also track indicators and threat intelligence. Ask your analysts which steps they repeat most often and which steps need a tamper-evident record. If the answer is many steps with formal approvals, evaluate a SOAR product before extending n8n.

Mapping Splunk alerts and search results to Elastic cases

This table maps the Splunk fields an n8n workflow receives to the Elastic Security case fields it writes. Use it to decide which values need normalizing in a Code or Set step before the case is created. Confirm every field name against the node output in your n8n and Splunk versions, since the exact keys are set by the nodes, not by this page.

Splunk sourceElastic case fieldNormalization neededCheck before go-live
Saved search or alert nameCase titlePrefix with the source label and trim length so titles stay readable in the case listConfirm the key the Splunk node returns for the alert name in your version
Alert severity or urgencyCase severityMap Splunk's scale to the severity values your Elastic case configuration accepts, using a lookup in a Set or Code stepAgree the mapping table with the SOC before enabling automation
Earliest and latest search time rangeCase description (time window)Convert epoch values or Splunk time modifiers to one timezone and ISO formatCompare converted times against the original alert in Splunk
Search results (rows or event fields)Case commentLimit row count, remove raw sensitive fields and format as plain text or a summaryCheck that comment size and field content match your data handling rules
Saved search or alert identifierCase tagLowercase, replace spaces and remove characters the tag field rejectsConfirm tag limits and naming conventions in your Elastic Security instance
Triggering host, user or source fieldsCase description and tagsStandardize host and user names to the form used in Elastic entity dataTest a sample alert end to end before connecting live alerts

Securing credentials, permissions and data paths

An n8n SOAR layer touches a SIEM, a case system and alert data that may contain sensitive content, so every connection needs a deliberate owner and scope. The cards below cover where secrets live, how n8n workers reach them, which identities n8n uses on each platform, and how alert data is kept out of logs and out of unintended network paths.

Encrypt credentials and share the key

n8n stores credentials in its database encrypted with the main instance's encryption key. In queue mode, every worker and webhook processor must receive that same key or it cannot decrypt the Elastic and Splunk credentials. Confirm the key is held in your secrets store, that it is backed up with the database, and that a rotation plan exists before you add a second worker.

Queue mode docs

Scope the Elastic API key

Create a dedicated Elastic API key for n8n rather than reusing an analyst's credentials. Limit it to the Kibana spaces and case privileges the workflows need, such as creating and updating cases and adding comments, and exclude detection rule administration unless a workflow requires it. Record the key owner and an expiry date so the key does not outlive its purpose.

Use a read-only Splunk role

For alert and search reads, give n8n a Splunk role that can read fired alerts and run specific saved searches, with no permission to edit saved searches, alert actions or users. Splunk's user management operations are available through the node, so keep that capability out of the role unless an approved workflow needs it. Review the role whenever a new search is added.

Limit which workflows write cases

Any workflow that can create or update an Elastic case can change what analysts see in the queue. Keep case-writing workflows in a separate project with restricted editors, require review for changes, and map each workflow to one case template or owner group. Read-only enrichment workflows should not share the credential used for case writes.

Allow outbound connections only

Place n8n in a network zone that can reach the Elastic and Splunk API endpoints and the enrichment services it calls, and block all other egress. Inbound access should be limited to the webhook path the SIEM uses and the editor for administrators. Document each allowed destination so a review can match it to a firewall rule.

Keep secrets out of execution logs

Alert payloads often contain usernames, hostnames, command lines, tokens or URLs with embedded credentials. Decide which fields a workflow forwards to a case, set execution data retention deliberately, and mask or drop sensitive fields before any log or chat notification step. Test a sample alert and inspect the stored execution data before enabling the workflow.

Confirm Elastic SSO tiers first

Elastic lists SAML and OpenID Connect single sign-on under the Enterprise self-managed tier, and its subscriptions page lists the tiers and their status. Confirm the tier you hold before relying on Elastic single sign-on for administrative access to Kibana. Until that is verified, plan for named local administrator accounts protected by strong authentication and kept out of workflows.

Elastic subscriptions

Common failures when n8n calls Elastic and Splunk

This table lists the failures teams most often hit when n8n calls Elastic Security and Splunk, with the likely cause and the fix for each. Read each row as a checklist item to test before the workflow reaches production. The main takeaway is that most failures come from credential scope, certificate trust, key distribution and version drift, which can be verified before analysts depend on the automation.

FailureLikely causeFix
Credential rejected or access deniedThe API key or Splunk account is expired, disabled or lacks the roles needed for cases, alerts or search jobs.Create a dedicated service identity with only the case, alert and search privileges the workflows use, then test each operation with it. Confirm the scoping model with your Elastic and Splunk administrators.
TLS trust error on self-signed certificatesThe n8n host does not trust the internal certificate authority that signed the Elastic or Splunk endpoint.Add the internal CA certificate to the n8n container or host trust store, and confirm the chain with the node's connection test. Avoid disabling certificate verification in production.
Search job times out or returns no resultsThe search window is too wide, the query is slow on large indexes, or the job is still running when n8n reads results.Narrow the time range, tune the query, and poll the search job status before reading results. Confirm expected event volumes with the Splunk administrator before setting timeouts.
Case update overwrites analyst editsThe workflow reads a case, then writes an update based on a stale copy while an analyst changed fields in the meantime.Re-read the case immediately before writing, limit automated updates to comments and tags where possible, and log each change so analysts can see what the workflow wrote.
Workers fail to read credentialsIn queue mode, worker and webhook processor nodes do not have the main instance's encryption key, so they cannot decrypt stored Elastic or Splunk credentials.Share the same encryption key with every worker and webhook processor before starting them. Test a worker-run execution that uses an Elastic and a Splunk credential after each deployment change.
Node fields or operations do not match the server releaseThe n8n node was built against one Elastic or Splunk API version, and the server in use is on a different release line.Record the Elastic Stack and Splunk versions in use, check the node's supported operations against them, and run a test execution after every upgrade on either side. Confirm the supported versions with the n8n node documentation.
Alert data missing fields after a rule changeA detection rule or alert schema changed in Elastic or Splunk, so expected fields are empty or renamed in the workflow.Map fields defensively, validate required fields in an early step, and route incomplete alerts to a review queue instead of a case. Review rule changes with the detection team.

Questions SOC teams ask before building this integration

What drives the cost of building n8n case automation for Elastic Security and Splunk?

The main cost drivers are the credential and field mapping work, the number of alert types you want to handle, and the testing volume needed before analysts trust the output. Each Elastic Security case action (create, update, comment, tag, connector) and each Splunk action (fired alert reports, search jobs, search results) needs its own mapping from source fields to case fields. Costs rise with every additional alert family, every enrichment source and every environment that must be tested separately. Licensing is usually a separate line item: you pay for the Elastic and Splunk subscriptions you already own, and for an n8n plan if you need SSO, LDAP, Git or log streaming. Ask any partner for a quote based on a written scope that lists alert types, enrichment sources and test environments.

Do we need a paid n8n plan for SOC case automation?

Not necessarily. The free self-hosted Community edition runs the Elastic Security and Splunk nodes, and n8n states that all plans include every integration. Paid plans matter when your security team needs single sign-on, LDAP, environments with Git or log streaming. According to n8n's pricing page, SSO and LDAP, environments with Git, and log streaming are included only in the Business and Enterprise plans, and the Business plan is listed at 667 euros per month billed annually and is currently self-hosted only. Confirm current pricing on n8n's pricing page before budgeting, because the vendor can change plans. Also check the license terms: the Sustainable Use License governs use, and files with .ee in their name need an Enterprise License.

How long does a SOC case automation build usually take?

Duration depends on how many alert types, case templates and enrichment steps are in scope, and on how quickly your team can review results. Work usually moves through credential setup, sample alert mapping, case creation and update flows, enrichment, and then a test period with real but low-risk alerts. Each Splunk search or alert family can add its own mapping and review cycle. Ask for a timeline tied to a written scope and to named milestones, and confirm how many review rounds are included. No duration figure is given here because none was supplied for this integration.

What must our SOC supply before the build starts?

You will need to supply a set of representative sample alerts from both Elastic Security and Splunk, including fired alert reports and the search results they reference. You also need your case taxonomy: severity levels, case states, tags, assignee rules and the fields analysts fill in by hand. Provide API access details for each platform, a test environment or a sandbox space in Elastic and a non-production Splunk instance if available, and named owners who can approve mappings. Missing taxonomy is the most common cause of rework, because case tags and connectors then have to be redesigned after analysts start using them.

Can an internal engineer build this without outside help?

Yes, if the engineer has experience with n8n credentials and workflow design, working knowledge of the Elastic Security case API and Splunk search and alert concepts, and time to test with your own alerts. The n8n Elastic Security node covers case creation, updates, comments, tags and connectors, and the Splunk node covers fired alert reports, search jobs and results, so many flows do not need custom code. Outside help tends to pay off when the team lacks Splunk or Elastic depth, needs hardening of the n8n instance, or has to meet an internal review before analysts rely on the output. Ask for a written scope so you can compare internal effort with a quote.

What breaks most often in n8n flows between a SIEM and a case tool?

The most common failures come from changed field names in alert payloads, expired or over-scoped credentials, and enrichment steps that time out or return partial data. Analysts also see problems when case duplication is not handled, so the same alert opens several cases. Check that each flow handles empty search results, retries safely and logs what it created. Keep a list of the alert types each workflow handles, and retest the mappings after any change on the Elastic or Splunk side or any n8n upgrade.

How do we control access to Elastic and Splunk credentials in n8n?

Use a dedicated service account per platform with the smallest role that allows the case, alert and search actions the flows need, and store its credentials only in n8n's credential store. Credential encryption depends on the encryption key, and in queue mode that key must be shared with every worker and webhook processor so they can read stored credentials, so protect it accordingly. Review who can open or edit workflows that show credentials, and restrict admin access through SSO where your plan includes it. Confirm the exact role and permission model with each vendor's documentation and with your security team before go-live.

Which licenses do we already need from Elastic and Splunk?

Check what your current Elastic and Splunk subscriptions include, because the case and detection features you plan to use may depend on the tier. Elastic's self-managed subscriptions page lists case management and the detection engine under Platinum, which Elastic no longer sells to new customers, and SAML or OpenID Connect single sign-on under Enterprise. Confirm which tier your Elastic deployment has, whether you use Elastic Cloud or self-managed, and what your Splunk licence covers for API and search use. Ask your vendors or resellers to confirm entitlements in writing, since this integration is only as available as the platforms it calls.

How the scope is agreed before any build starts

DeployOpen agrees scope, deliverables and timelines in writing before any build work starts, and that document is the reference for acceptance testing later. For an n8n SOC automation project, the written scope should name each alert type in scope, such as Elastic detection alerts or Splunk fired alerts, and state which workflows consume each one. It should also list the case fields the Elastic Security node will create or update, including titles, severities, tags, assignees and comments, and the enrichment sources each workflow may call, such as threat intelligence lookups or asset inventory. Where a field or enrichment source is not yet decided, the scope should say so and name the owner who will decide it.

The scope should also define the environments and the test plan. Name the Elastic Security and Splunk instances in use, whether they are Elastic Cloud or self-managed, and which n8n instance will run each workflow. Confirm that Elastic Security case management and the Splunk user and search permissions needed for the Splunk node are available on the account that n8n will use, and record the API key or service account scope each workflow requires. The test plan should list the sample alerts, expected case outcomes and failure cases to replay before go-live, such as a missing enrichment response or a rejected case update.

The client provides the inputs that make that scope testable. Ask for sandbox or non-production access to both SIEMs, a set of sample alerts and search results that reflects real rule output without production personal data, and named owners who can approve case field mappings and enrichment choices. Confirm early whether analysts or the client's own team will hold credential administration, since n8n stores credentials encrypted and access to them shapes the handover. Changes after sign-off should go through a written change request that updates the scope, deliverables and timeline together.

How DeployOpen scopes, builds and supports SOC automation with n8n

DeployOpen plans, builds, documents and supports self-hosted n8n workflows that connect Elastic Security cases and Splunk alerts inside infrastructure you control. Engagements are fixed-scope, with the scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Inventory which Elastic Security case actions and Splunk alert or search operations the workflows need, and which analyst steps they replace
  • Confirm your Elastic subscription tier and Splunk edition, since node coverage depends on what your deployment exposes
  • Record credential ownership, API role scopes, and where enrichment data is allowed to travel before any build begins

How we build

  • Build case creation, update and comment workflows in n8n with separate test credentials and a staging Elastic Security space
  • Design Splunk alert pulls and search-job steps with bounded search windows and documented field mappings for each enrichment
  • Test failure paths, duplicate alerts and rate limits before any workflow writes to a production case queue

How we hand over

  • Deliver written workflow documentation covering triggers, node configuration, credential scopes and the data each step touches
  • Provide a runbook for common failures, credential rotation and disabling a workflow during a SIEM outage
  • Walk your SOC and platform engineers through the workflows and confirm they can change and test them independently

How we support

  • Plan n8n upgrades and Elastic or Splunk API changes as scheduled work, with testing against staging before production
  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped in writing alongside the build
  • Retest workflows after changes to detection content, case templates or Splunk search configurations

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.