Splunk spl2 pipeline kit

From chambear2809/splunk-cisco-skills · View interactive version

Splunk spl2 pipeline kit is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when the user needs SPL2 pipeline authoring, conversion review, compatibility linting, or shared templates for Ingest Processor or Edge Processor workflows, including Cisco Data Fabric or telemetry pipeline management requests that need reusable SPL2 pipeline logic. Render and lint reusable SPL2

How to use this skill

Skill file

Splunk SPL2 Pipeline Kit

Prerequisites

| Tool or access | Purpose | Verify |

|---|---|---|

| Bash and Python 3 | Run bundled setup and validation helpers | bash --version && python3 --version |

| Required product/platform access | Inspect or configure the selected target | Complete the documented preflight |

| Credential files for live modes | Keep secrets out of chat | Verify paths only |

Workflow Overview

┌───────────┐   ┌───────────────┐   ┌───────────────┐   ┌─────────────────┐
│ Preflight │ → │ Render/review │ → │ Apply/handoff │ → │ Validate evidence │
└───────────┘   └───────────────┘   └───────────────┘   └─────────────────┘

When to Activate

Processor or Edge Processor workflows, including Cisco Data Fabric or telemetry pipeline management requests that

need.

Scope

Follow the documented read-only or render-first path whenever it is available.

This skill does not imply permission to mutate live systems. Require explicit

apply flags, protected credentials, and operator review for state changes.

Examples

Inspect the supported setup modes before selecting one:

bash skills/splunk-spl2-pipeline-kit/scripts/setup.sh --help

Expected output: usage, supported modes, and required arguments are displayed

without changing the target environment.

Inspect validation modes before running completion checks:

bash skills/splunk-spl2-pipeline-kit/scripts/validate.sh --help

Expected output: offline, live, and completion options are displayed when the

skill supports them; help exits without mutation.

Troubleshooting

| Issue | Cause | Resolution |

|---|---|---|

| Preflight fails | A required tool or access path is missing | Resolve it before rendering or applying |

| Rendered assets are incomplete | Required non-secret inputs are absent | Complete intake and render again |

| Apply is blocked | Review, credentials, or explicit acceptance is missing | Use the documented handoff |

| Validation is incomplete | Live evidence is unavailable | Record the gap and keep completion open |

This skill is the shared SPL2 authoring and validation surface for

splunk-ingest-processor-setup and splunk-edge-processor-setup. It is

offline-only: it renders starter SPL2, lints pipeline files, and reports

profile compatibility issues without calling Splunk APIs.

For newer Cisco Data Fabric wording, this is the reusable SPL2 authoring route.

Native Observability Metrics Pipeline Management remains a separate UI workflow

covered by splunk-observability-deep-native-workflows.

Agent Behavior

contents out of chat and rendered files. Render placeholders and file-path

handoffs only.

conversion tool remains the authoritative conversion workflow.

rules.

Quick Start

Render every template and lint the rendered output:

bash skills/splunk-spl2-pipeline-kit/scripts/setup.sh --phase all --profile both

Lint a user-provided pipeline:

bash skills/splunk-spl2-pipeline-kit/scripts/setup.sh \
  --phase lint \
  --profile ingestProcessor \
  --pipeline-file pipelines/my_pipeline.spl2

--phase lint and --phase validate require at least one explicit

--pipeline-file or previously rendered template under the output directory.

An empty target set is a hard SPL2-NO-TARGETS failure, not a pass.

Render/all replaces only an empty directory or one carrying this kit's

ownership marker/legacy README; unrelated nonempty directories are never

recursively deleted.

Run the offline smoke test:

bash skills/splunk-spl2-pipeline-kit/scripts/smoke_offline.sh

Outputs

The default output directory is splunk-spl2-pipeline-kit-rendered/:

extract, timestamp, JSON/XML, OCSF, decrypt, metrics, stats, S3, and

compatibility starters where supported.

examples using @template and runtime profile metadata.

Guardrails

/splunk.ingest.commands` style import and is Ingest Processor-only.

lookup handoff. Do not render private-key material.

sum()/count() as the supported average pattern. Edge Processor stats is

supported and includes newer state-window behavior on current EP versions.

json_entries().

(?P<fieldName>...).

the lint output rather than hidden in comments.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.