Splunk universal forwarder setup

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

Splunk universal forwarder setup is an AI agent skill from the GitHub repository chambear2809/splunk-cisco-skills. Use when the user asks to install, upgrade, enroll, or check Universal Forwarders separately from full Splunk Enterprise host bootstrap or Agent Management server-class work. Bootstrap Splunk Universal Forwarder runtimes on Linux, macOS, and Windows, resolve official UF downloads, render first-class

How to use this skill

Skill file

Splunk Universal Forwarder Setup

Splunk's Enterprise 10.6 release notes certify Universal Forwarder 10.6 on

Enterprise and Cloud 10.6 and document direct UF upgrades from 10.0.x and later.

Use the shared four-segment parser for version strings such as 10.6.0.5.

Package release compatibility remains conditional until the selected UF package

has explicit 10.6 evidence in the package registry.

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

Agent Management server-class work.

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 |

Bootstraps Universal Forwarder runtime clients. Use this skill for endpoint

or server forwarders that should run the lightweight UF package, not a full

Splunk Enterprise heavy forwarder.

Scope

SPLUNK_HOME=/opt/splunkforwarder; default service user splunkfwd.

SPLUNK_HOME=/Applications/splunkforwarder.

execution is out of scope in v1.

checks, but install/apply is unsupported in v1.

The skill intentionally delegates server classes and deployment apps to

splunk-agent-management-setup. This workflow installs or upgrades the UF

runtime and enrolls the client only.

Credential Rules

Never ask for passwords in chat and never pass password values as argv or

environment-variable prefixes.

Use a local password file for first-start admin seeding and Splunk Cloud

credentials-package installs:

bash skills/shared/scripts/write_secret_file.sh /tmp/uf_admin_password

Then pass only the file path:

--admin-password-file /tmp/uf_admin_password

Windows rendering follows the same rule. The PowerShell script installs MSI

packages with LAUNCHSPLUNK=0, writes user-seed.conf from the password file

before first start, and removes seed artifacts after startup. It never renders

or runs SPLUNKPASSWORD=....

Main Script

bash skills/splunk-universal-forwarder-setup/scripts/setup.sh \
  --phase render|download|install|enroll|status|all \
  --target-os auto|linux|macos|windows|freebsd|solaris|aix \
  --execution local|ssh|render \
  --source auto|splunk-auth|remote|local \
  --url latest|URL \
  --file PATH \
  --package-type auto|tgz|rpm|deb|msi|dmg|pkg|txz|p5p|tar-z
  --mgmt-port PORT --ipc-broker-port PORT (alias: --ipc-port)

Useful additions:

--ipc-broker-port (alias --ipc-port; default 8194, env

SPLUNK_IPC_BROKER_PORT with legacy SPLUNK_IPC_PORT support) support

isolated Unix-like UF instances. Fresh installs check both ports and write

web.conf / server.conf before

first start. Upgrades preserve the existing port configuration. Windows

handoffs retain MSI defaults.

enrollment

The default phase is render. It writes reviewable assets and does not install,

upgrade, or enroll a host. Live Unix-like install, enroll, and all phases

refuse to run unless --accept-forwarder-mutation is present. An install

phase also covers upgrades of an existing Universal Forwarder. Render, dry-run,

download, status, and Windows handoff paths do not require the acknowledgement.

Enrollment Modes

deploymentclient.conf using the same client semantics as Agent Management.

writes outputs.conf with static load-balanced indexers and useACK=true.

user-supplied splunkclouduf.spl package and restarts the forwarder.

Examples

Linux install and deployment-server enrollment:

bash skills/splunk-universal-forwarder-setup/scripts/setup.sh \
  --phase all \
  --accept-forwarder-mutation \
  --target-os linux \
  --source remote \
  --url latest \
  --enroll deployment-server \
  --deployment-server ds01.example.com:8089 \
  --client-name web01 \
  --admin-password-file /tmp/uf_admin_password

Windows MSI handoff:

bash skills/splunk-universal-forwarder-setup/scripts/setup.sh \
  --phase render \
  --target-os windows \
  --execution render \
  --source local \
  --file /tmp/splunkforwarder.msi \
  --service-user LocalSystem \
  --enroll enterprise-indexers \
  --server-list idx01.example.com:9997,idx02.example.com:9997 \
  --admin-password-file C:\\Temp\\uf_admin_password.txt

Use --service-user LocalSystem only for a reviewed add-on requirement such as

Splunk Stream packet capture. If --admin-password-file is omitted, the

Windows handoff asks the MSI to generate a random admin password and removes

the temporary installer logs that contain it; manage the forwarder through its

deployment configuration rather than trying to recover that discarded secret.

Latest-resolution smoke without downloading a package:

bash skills/splunk-universal-forwarder-setup/scripts/smoke_latest_resolution.sh \
  --target-os all \
  --package-type all

Validate

bash skills/splunk-universal-forwarder-setup/scripts/validate.sh \
  --target-os linux \
  --execution ssh \
  --enroll deployment-server

Hand-off Contracts

References

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.