Expected log-source availability for Splunk
Maintain the log sources Splunk should receive, measure availability from Splunk receive time, and manage source-specific thresholds, lifecycle, maintenance, diagnostics and audit.
Overview
LSW answers: which telemetry should exist, what policy applies to it, and is it reporting now?
Expected inventory
Registered index + host pairs define what Splunk is expected to receive.
Receive-time availability
Silence uses _indextime, not only source-provided timestamps.
Policy & lifecycle
Per-source threshold, ACTIVE, MAINTENANCE and RETIRED state.
Operational evidence
Audit Trail, optional _internal diagnosis and Application Health.
Requirements
| Requirement | Details |
|---|---|
| Platform | Splunk Enterprise. Validate the exact target version before production use. |
| KV Store | Required for inventory, observations, state and audit. |
| Management permissions | admin or sc_admin. |
| Dependencies | No third-party Python packages or external SaaS runtime service. |
Installation
- Install the TGZ: Apps → Manage Apps → Install app from file.
- Restart Splunk when a release adds/changes custom commands, REST endpoints or scheduler definitions.
- Open Log Source Watch and complete Setup on a new installation.
- Verify Reports → Application Health after setup or upgrade.
Search Head Cluster
Community supports one Splunk deployment, either standalone or one SHC. Use the normal SHC deployer workflow and keep any paid entitlement consistent across members.
Setup
Setup is for first initialization. Select a controlled first index, lookback and sensible threshold, then initialize. After the app is ready, use Management → Discover to expand coverage.
Core concepts
| Concept | Meaning |
|---|---|
| Monitored Source | One unique index + host pair in ACTIVE or MAINTENANCE. This is the licensed capacity unit. |
| Source key | sha256(index."|".host). |
| Last received | Latest _indextime; controls receive age and SILENT evaluation. |
| Latest event time | Latest event _time; retained for investigation only. |
| Silence threshold | Maximum receive age; Management supports 1–10,080 minutes. |
| Sourcetype policy | Optional index + host + sourcetype policy; does not consume another licensed source slot. |
last_received = max(_indextime)
last_event_time = max(_time)
receive_age = now() - last_receivedState model
| Priority | State | Condition |
|---|---|---|
| 1 | RETIRED | Retained for history; no alarm and no licensed capacity. |
| 2 | MAINTENANCE | Maintenance active or until manually cleared. |
| 3 | NO LOG OBSERVATION | Registered but no receive-time observation exists. |
| 4 | SILENT | receive_age > threshold_seconds. |
| 5 | OK | Active and received inside threshold. |
Freshness & risk
| Band | Threshold consumption |
|---|---|
| Healthy margin | <50% |
| Watch | 50–80% |
| Near threshold | 80–100% |
| Silent | >100% |
_internal heartbeat
LSW_Update_Heartbeat checks recent index=_internal sourcetype=splunkd source=*splunkd.log. Default heartbeat freshness is 900 seconds / 15 minutes.
| Source | Heartbeat | Meaning |
|---|---|---|
| SILENT | ALIVE | Source silent · _internal active. Investigate input/log production/routing first. |
| SILENT | STALE | Source + _internal stale. Host/forwarder/connectivity becomes more plausible. |
| SILENT | UNKNOWN | No matching heartbeat evidence. Do not infer host failure. |
Agentless syslog, HEC and API sources may legitimately have no matching heartbeat.
Management
Workspace tabs: Sources · Bulk Actions · Discover · Sourcetype Policies · Setup.
Sources
Lifecycle, threshold, maintenance, exact index + host live receive-time verification and recent audit history.
Bulk Actions
Threshold, maintenance, end maintenance, activate and retire. The 10,000-source limit is an operational safety cap, not a licensing limit.
Discover
Operator-driven tstats against only the selected index/lookback. Enrollment writes inventory, observations, state and audit.
Sourcetype policies
Use a feed policy when host-level availability is too broad and one feed needs its own silence threshold.
index=windows host=dc01 OK
├─ XmlWinEventLog:Security OK
├─ XmlWinEventLog:System OK
└─ XmlWinEventLog:Sysmon SILENT- Own receive-time threshold.
- Lifecycle and maintenance inherited from the base source.
- Base host heartbeat enriches feed diagnosis.
- No additional licensed source capacity.
Feed key: sha256(index."|".host."|".sourcetype).
Reports & Health
Silent Sources
Current base sources over threshold.
Application Health
Scheduler runtime/freshness, KV Store, licensing and monitoring counts.
Audit Trail
Who changed what, where and when.
Splunk Messages
One deduplicated warning while any source/feed is SILENT; clears on recovery.
OK = fresh success; WARN = skipped; ERROR = unsuccessful; STALE = missing or old evidence.
Scheduled jobs
| Job | Cadence | Purpose |
|---|---|---|
| LSW_Update_LastSeen | 1 min | Base receive-time and latest event time. |
| LSW_Update_Feed_LastSeen | 1 min | Sourcetype receive-time. |
| LSW_Update_Heartbeat | 5 min, +1 | _internal evidence. |
| LSW_Expire_Maintenance | 1 min | Expire timed maintenance. |
| LSW_Build_State | 1 min | Canonical base state. |
| LSW_Build_Feed_State | 1 min | Canonical feed state. |
| LSW_Update_Splunk_Message | 1 min | Deduplicated SILENT message. |
| LSW_Export_SilentHost_File | 1 min | Refresh silent CSV. |
| LSW_Export_Health_File | 5 min, +4 | Refresh health CSV. |
On-demand: LSW_SilentHost, LSW_SilentFeed, LSW_Health, LSW_AuditTrail.
KV Store data model
| Collection | Purpose |
|---|---|
| lsw_inventory | Base identity and policy. |
| lsw_lastseen | Receive time, event time and observation metadata. |
| lsw_state | Canonical base state and diagnosis. |
| lsw_heartbeat | Optional host heartbeat evidence. |
| lsw_feed_inventory | Sourcetype policy definitions. |
| lsw_feed_lastseen | Feed observations. |
| lsw_feed_state | Canonical feed state. |
| lsw_audit | Administrative history. |
| lsw_health | Reserved/persisted health integration state. |
Licensing
| Edition | Price | Capacity | Model |
|---|---|---|---|
| Community | €0/year | Up to 2,500 | One standalone or one SHC; full core workflow; no license file or expiration. |
| Enterprise | €4,990/year + VAT | 2,501–25,000 | Enterprise internal use; multiple deployments can be entitled. |
| Enterprise Plus | €7,990+/year + VAT | >25,000 / custom / unlimited | Custom deployment/support/SLA and separately agreed commercial rights. |
ACTIVE and MAINTENANCE base sources consume capacity; RETIRED does not. Sourcetype policies do not multiply capacity. Paid files are verified with the packaged RSA public verification key.
Upgrade
- Back up KV Store/app-local configuration according to your normal Splunk change process.
- Install the new TGZ over the existing app; do not delete KV Store or
local/. - Restart Splunk when commands, REST endpoints or scheduler definitions changed.
- Open Application Health and confirm all core timestamps advance.
- Validate one known source with exact
index + host,max(_indextime)andmax(_time).
SHC
Use the supported SHC deployer workflow and validate KV Store replication, scheduler ownership and runtime behavior after deployment.
Browser cache
Current 4.9.4 builds use versioned Management JavaScript assets. Hard refresh if an old UI remains visible after upgrade.
Troubleshooting
SILENT but events exist
Always search the exact monitored identity, not index=*.
index=main host="Tehomylly" earliest=-1d latest=+1d
| stats max(_indextime) AS last_received max(_time) AS latest_event_time countCheck LSW state
| inputlookup lsw_lastseen
| search index="main" host="Tehomylly"
| table index host last_received last_event_time observation_basis updated_atNO RUN / STALE scheduler
/opt/splunk/bin/splunk btool savedsearches list LSW_Update_LastSeen --debug| rest /servicesNS/nobody/logsource_watch/saved/searches count=0
| search title="LSW_Update_LastSeen" OR title="LSW_Build_State"
| table title disabled is_scheduled cron_schedule next_scheduled_timeCore jobs should show disabled=0, is_scheduled=1 and one-minute cron where applicable.
Security
- Management writes use authenticated Splunk app operations.
- Operational data remains in app-owned KV Store.
- Discovery is operator-driven and scope constrained.
- Commercial license validation is local and RSA-signature verified.
- The private issuer key is never shipped in the app.
- No third-party Python runtime dependency or vendor licensing cloud is required.
Run Splunk AppInspect against the exact final TGZ and validate target-version compatibility, scheduler cost, KV Store behavior and SHC behavior before production/public release.