Back to exam

SPLK-2002 Cheatsheet

Splunk Enterprise Certified Architect

Download free PDF

Deployment planning and capacity

Requirements before topology

  • **Stakeholders and use cases** establish outcomes, search workloads, availability targets and ownership. Inventory data sources, daily and peak ingest, retention, growth and expected user adoption before selecting hardware.
  • **Topology** records sites, network paths, bandwidth, latency, storage, authentication systems and security boundaries. Include current and proposed designs, rollout stages, business continuity and disaster recovery.
  • **Data policy** defines who can search each dataset, retention and sensitive-data handling. Plan native, LDAP or SAML authentication separately from roles, capabilities and index access.
  • **App assessment** covers support, compatibility, inputs, parsing, knowledge objects, scheduled searches and data-model acceleration. Place each add-on component on the tier where its function executes.

Size ingestion and search together

  • **Indexer capacity** depends on ingest, parsing cost, search concurrency, storage latency and retention. Size for peaks, growth and operation during node failure; daily GB alone cannot determine an indexer count.
  • **Search heads** need CPU and memory for concurrent jobs and result processing. More search heads can add concurrency, but every distributed search still consumes search-peer resources.
  • **Enterprise Security** adds correlation searches and accelerated data models. **ITSI** adds KPI and service workloads. Include their background jobs and storage rather than sizing only for interactive users.
  • **Storage I/O** affects indexing and bucket scans. Use supported storage with measured latency and throughput; RAID 10 is a common local-disk choice. Avoid oversubscribed virtual CPU, memory and storage; virtualization has no universal performance penalty.

Storage model and retention

  • **Standalone estimate:** daily ingest x measured on-disk ratio x retention days, then add headroom. Compression depends on source content; measure compressed rawdata and index files separately.
  • **Cluster estimate:** daily compressed rawdata x RF plus daily searchable index files x SF, multiplied by retention days. Divide by peer count only for an average; add imbalance, failure and growth headroom.
  • **Rawdata** stores compressed events; **tsidx** files provide searchable index structures. Searchable copies cost more storage than rawdata-only copies. Add acceleration summaries, dispatch artifacts and operational logs separately.
  • **Retention** is constrained by both age and size. A full index can freeze buckets before the desired age. Separating high- and low-volume datasets can preserve distinct retention and access policies.
  • **SmartStore** separates compute from remote bucket storage and uses a local cache. Size hot data, cache and remote storage independently; the conventional local-storage RF/SF formula is not a complete SmartStore model.

Licensing and management traffic

  • **License manager** coordinates license peers. The hierarchy is **group > stack > pool**; pools allocate compatible stack capacity. Indexer-cluster peers use the same license manager and pool.
  • **Ingest licensing** measures eligible incoming data before on-disk compression. Cluster replication does not count as fresh ingest. Ordinary event data such as main counts; internal and summary data have specific licensing treatment.
  • **Warnings and enforcement** depend on license type and entitlement. No-enforcement licensing can still record violations. Monitor manager reachability and usage; do not treat lack of search blocking as permission to exceed entitlement.
  • **Universal Forwarder** includes a forwarding license; it is not a general-purpose search or indexing server. Forwarder Management is a deployment-server feature, rather than a separate ingest allowance.
  • **Ports:** 8000 commonly serves Splunk Web, 8089 management/REST and 9997 configured Splunk-to-Splunk receiving. Bucket replication uses a separately configured port; changing a receiving port does not change the REST port.

Data collection and configuration

Choose the collection path

  • **Universal Forwarder** is the lightweight choice for file collection and forwarding. **Heavy Forwarder** supplies a full parsing tier for requirements such as event masking, filtering, routing or supported modular inputs.
  • **Parsing ownership** usually belongs to the first full Splunk instance in the path. Put matching parsing rules on heavy forwarders and on indexers that receive unparsed data; mixed paths can otherwise format identical sourcetypes differently.
  • **Direct forwarding** avoids unnecessary intermediate bottlenecks and failure points. Load-balance across indexers and verify actual data distribution; an intermediate tier is justified by explicit routing, network or processing needs.
  • **Syslog collectors** can persist logs to disk before a forwarder reads them. TCP improves transport reliability over UDP; redundant collectors and load balancing still need durable buffering and failure testing.
  • **Third-party integration** can use APIs, alert actions or forwarding without local indexing. External stores such as HDFS require a supported connector and compatible product capabilities; do not assume native access to every system.

Parsing rules and pipeline cost

  • **Pipeline:** input, parsing, indexing, search. Event boundaries, timestamps and index-time transforms precede indexed storage; search-time fields and lookups are applied when searching.
  • **LINE_BREAKER** defines event boundaries with a regular expression. Set **SHOULD_LINEMERGE=false** when explicit line breaking supplies the boundaries, avoiding a second multiline-merging pass.
  • **TIME_PREFIX**, timestamp format and lookahead bounds reduce timestamp guessing. **TRUNCATE**, character encoding and punctuation processing affect ingestion behavior; test representative events before rollout.
  • **REPORT** references search-time field extractions. **INDEXED_EXTRACTIONS** handles supported structured formats at input time, including supported forwarder cases; avoid duplicate index- and search-time extraction.
  • **parallelIngestionPipelines** in server.conf creates additional ingestion pipeline sets on supported processing instances. Increase only after identifying a pipeline bottleneck and confirming spare CPU, memory and storage capacity.

File identity and missing inputs

  • **inputs.conf** controls monitor paths, inclusion/exclusion rules, index and sourcetype. Verify file permissions, destination-index existence and effective configuration before changing file tracking.
  • **Fishbucket** tracks file identity and read offsets. Splunk normally fingerprints an initial byte region; the default **initCrcLength** is 256 bytes. Files sharing long identical headers can collide.
  • **initCrcLength** can be increased to include distinguishing content beyond a common header. **crcSalt=<SOURCE>** distinguishes paths, but renamed or rotated files can then be treated as new and reindexed.
  • **TailingProcessor** messages in splunkd.log and the management endpoint **/services/admin/inputstatus/TailingProcessor:FileStatus** expose monitored-file state. Also inspect forwarding queues and receiver connectivity.
  • **Tracking resets** and clean commands can cause duplicate ingestion or data loss. Removing indexed data does not rewind a forwarder automatically; diagnose identity and offsets before clearing state.

Deployment server and app delivery

  • **Deployment server** stores client apps under **etc/deployment-apps**. **serverclass.conf** maps apps to client groups; clients receive apps under **etc/apps**.
  • **Client matching** can use host/DNS names, IP addresses, client names and machine-type filters. Check inclusion and exclusion rules instead of assuming a runtime Splunk role automatically selects clients.
  • **deploymentclient.conf** identifies the deployment server and sets **phoneHomeIntervalInSecs**. Clients poll; the deployment server does not use the search-head deployer bundle command.
  • **Missing app or inactive input:** check server-class membership, client phone-home, app contents and deployment logs. Confirm required reload/restart behavior; other working inputs do not prove a new app has become active.
  • **Configuration precedence** is setting- and context-dependent. For global settings, system/local overrides app/local, app/default and system/default. Search-time app/user context adds further precedence; never edit system/default.
  • **btool** exposes merged settings and file provenance: splunk btool inputs list --debug, or splunk btool server list license --debug. It reads disk configuration; a running process can still need a reload or restart.

Secure each communication path

  • **TLS** must cover each required hop: browser to Web, forwarding to receivers, management and inter-node traffic. Encrypting browser traffic alone does not protect collected logs in transit.
  • **Certificate validation** needs trusted issuers, correct peer identities and suitable verification settings. Configure client-certificate authentication explicitly where required; use managed certificates and renew them before expiry.
  • **Connectivity diagnosis** separates DNS, TCP reachability, TLS negotiation and Splunk authentication. Port probes and packet captures test the network; splunkd.log and effective outputs.conf reveal application-level problems.
  • **Secrets** used for clustering and indexer discovery must match their relevant participants. Obfuscated stored values do not prove that configuration is active or that a restart has completed.

Indexer clustering and data lifecycle

Manager, peers and searchable copies

  • **Cluster manager** coordinates peer membership, bucket fixup and primary assignments, distributes peer configuration bundles and supports indexer discovery. **Peers** ingest, store, replicate and search data.
  • **Replication factor (RF)** is the target number of bucket data copies. **Search factor (SF)** is the target number of searchable copies. SF cannot exceed RF; standard single-site defaults are RF=3 and SF=2.
  • **Primary bucket copies** determine which peer searches each bucket for a given search, preventing duplicated results. A searchable replica can take over after failure; higher SF improves searchable-copy availability at a storage cost.
  • **Cluster configuration** uses server.conf [clustering] roles manager, peer or searchhead. Search heads obtain peer information from the manager; forwarders can use indexer discovery instead of a static receiver list.
  • **Clustered indexes** use **repFactor=auto** in indexes.conf. Deploy consistent index definitions, receiving inputs and parsing configuration through the manager bundle, rather than independently editing every peer.

Peer bundles and controlled changes

  • **Manager apps** are staged under **etc/manager-apps**. Put shared receiving stanzas such as [splunktcp://9997] in the bundle inputs.conf and apply them consistently to peers.
  • **Validate before apply:** splunk validate cluster-bundle --check-restart identifies restart requirements. splunk apply cluster-bundle distributes the bundle; splunk show cluster-bundle-status reports progress.
  • **Managed peer content** is replaced by subsequent bundles. Make durable changes at the manager source, rather than modifying generated peer-app directories.
  • **Version compatibility** requires an approved manager, peer and search-head combination. Keep steady-state peers aligned and follow the documented rolling-upgrade order; do not assume any newer node is compatible.
  • **Conversion to clustering** does not automatically replicate pre-existing standalone buckets. Plan migration and managed app placement separately from replication of newly indexed data.

Multisite placement and affinity

  • **One active cluster manager** coordinates the entire multisite cluster. Peers have site identities; site replication and search policies express origin-site, named-site and total copy requirements.
  • **site_replication_factor** places data copies; **site_search_factor** places searchable copies. Example: origin:2, site2:1, total:4 requests at least two searchable copies at origin, one at site2 and four overall when used as the search factor.
  • **Feasibility** depends on peer counts at each site and the relationship between replication and search policies. A total copy count alone does not guarantee that a surviving site has searchable data.
  • **Search affinity** favors primary searchable copies at the search head's site. A site0 search head has no site affinity. Choose SHC placement and surviving-site capacity alongside bucket placement.
  • **Migration and site retirement** require explicit handling of existing buckets and placement rules. Legacy single-site buckets retain distinct policy behavior; site mappings support site decommissioning without casually deleting data.

Rebalance and remove peers safely

  • **Primary rebalance** redistributes search responsibility. **Data rebalance** moves bucket copies to improve storage distribution. They solve different problems; adding a peer does not instantly equalize historical data.
  • **Cluster health** includes meeting RF/SF, searchable primaries, peer status and fixup backlog. Inspect health before and after rolling restarts, membership changes and failure tests.
  • **Temporary shutdown** and permanent removal have different procedures. **splunk offline --enforce-counts** supports permanent peer removal by allowing the cluster to restore required copy counts before exit.
  • **Capacity during removal** must accommodate replacement copies and search load. A force stop can reduce availability; plan maintenance windows and recovery bandwidth rather than relying only on normal-state sizing.

Buckets, freezing and restore

  • **Hot > warm > cold > frozen** describes normal aging. Hot buckets accept writes; warm and cold buckets are read-only. Frozen data is removed from the searchable index and is archived only if configured.
  • **frozenTimePeriodInSecs** controls age-based freezing; **maxTotalDataSizeMB** can trigger size-based freezing sooner. **maxDataSize** controls bucket size rather than total index capacity.
  • **auto_high_volume** uses a roughly 10-GB hot-bucket target on supported 64-bit systems. Bucket count and size affect search fan-out, rollover and operational overhead; treat this as a target rather than a storage reservation.
  • **Thawed data** is restored into the thawed path and rebuilt with **splunk rebuild** when needed for the archive format. It does not re-enter the ordinary hot-to-frozen lifecycle.
  • **Frequent thaw requests** suggest revisiting searchable retention and available storage. Archiving, replication and backup serve different recovery needs; bucket replicas do not replace a tested archive/restore process.

Search head clustering and knowledge

Members, captain and quorum

  • **Search head cluster (SHC)** provides search-service availability, shared knowledge objects and distributed scheduling. Plan at least **three members** plus an external **deployer**, with consistent platform and compatible software.
  • **Captain** coordinates scheduled jobs, configuration replication, search artifacts and alert suppression. Members execute searches; users normally enter through a suitable load balancer.
  • **Raft consensus** elects a dynamic captain using a majority. Distributing members across sites must preserve quorum for the failure being tolerated; three nodes alone do not guarantee survival of any site loss.
  • **Static captain** is an exceptional recovery option when dynamic consensus is unavailable, with reduced automatic failover behavior. Transfer captaincy through the supported procedure rather than altering Raft state casually.
  • **Scheduled capacity** can grow with members if search peers can support the work. **captain_is_adhoc_searchhead=true**, configured consistently on members, reserves the current captain from scheduled searches.

Deployer versus runtime replication

  • **Deployer** distributes baseline apps and administrator-managed configuration. Stage content under **etc/shcluster/apps** and push it using **splunk apply shcluster-bundle**; members install apps under **etc/apps**.
  • **Runtime knowledge changes** made by users propagate through SHC replication. Deployment-server polling is a separate mechanism. The deployer must remain outside the cluster and have capacity to build and distribute its bundle.
  • **merge_to_default** merges deployer app default/local settings into member default content. It is the usual app push mode; member runtime local settings can still override that baseline.
  • **local_only** is the default for built-in apps and preserves their default content. **default_only** excludes local content; **full** sends both default and local content. Choose modes deliberately to avoid overwriting product files.
  • **Enterprise Security deployment** uses its supported staging and SHC installation workflow, followed by distribution through the deployer. Treat premium app prerequisites and upgrade steps as part of deployment planning.

Membership and replication recovery

  • **New members** require a correctly installed, initialized instance and the supported join process. Decommissioning must update cluster membership; a restored filesystem snapshot can leave stale replicated or consensus state.
  • **Configuration resync** with **splunk resync shcluster-replicated-config** can replace a stale member's replicated configuration from the cluster. Diagnose first and preserve needed local changes because the resync is destructive to replicated state.
  • **Raft cleanup** is a recovery procedure, not normal maintenance. Follow the member-specific recovery workflow; cleaning consensus state across a healthy cluster can destroy its coordination.
  • **Knowledge bundles** carry search-time configuration and lookup content to search peers, commonly under **var/run/searchpeers**. Delta-transfer failure can fall back to a full bundle; inspect size, permissions and transfer errors.

KV Store and lookup behavior

  • **KV Store** holds collections defined in **collections.conf**, with lookup definitions in **transforms.conf**. It supports updating records without replacing an entire CSV file.
  • **KV Store primary** is distinct from the SHC captain. Its replica set coordinates collection writes and data replication; clients can submit supported updates through cluster members.
  • **Automatic KV lookups** require **replicate=true** on the collection to make the data available on indexers, plus the automatic lookup mapping in **props.conf**. SHC KV replication and search-peer bundle replication are different mechanisms.
  • **Stale KV members** need the supported local resynchronization workflow and a healthy source replica. **splunk clean kvstore** removes data; back up and scope cleanup carefully rather than using it as a routine health check.
  • **Knowledge visibility** depends on object permissions, app context and role/index access. Private field extractions are not shared automatically; search field-discovery settings also affect which fields appear.

Performance and troubleshooting

Search jobs and execution cost

  • **Search job** is a running or completed search with a search ID, dispatch artifacts and resource usage. Reports and alerts launch jobs subject to concurrency limits and scheduling quotas.
  • **Job Inspector** exposes **Execution Costs** and **Search Job Properties**. Compare expensive components, scanned events, remote work, total runtime and dispatch/queue time rather than guessing from query length.
  • **Filter early** with index, sourcetype, terms and the narrowest valid time window. Keep selective work ahead of costly centralizing commands; negative predicates often prune less effectively than positive restrictions.
  • **All-time sparse-result searches** can still inspect many buckets. Few returned results do not mean little work; bucket pruning, supported acceleration and storage I/O can matter more than extra ingestion pipelines.
  • **Queued or skipped searches** require scheduler and concurrency analysis. Reschedule expensive jobs, stagger dashboards and reduce redundant work before raising limits; added concurrency can overload peers.
  • **Scale the bottleneck:** peer CPU/I/O for distributed scan throughput, search-head CPU/memory for coordination and concurrent jobs. Balance incoming data across peers and measure changes against representative workloads.

Internal indexes and diagnostic logs

  • **_internal** contains operational logs such as splunkd.log, metrics.log, scheduler.log and license-related events. **_audit** records user/security activity; **_introspection** includes resource_usage.log and disk_objects.log instrumentation.
  • **_configtracker** records configuration-change information when enabled and supported. Correlate configuration changes, object permissions and bundle pushes when a working lookup or search suddenly fails.
  • **splunkd.log** uses the **component** field to identify logging channels. Start with index=_internal sourcetype=splunkd, then narrow by host, component, time and error text.
  • **metrics.log** typically emits periodic reports every 30 seconds. Inspect queue pressure, throughput and tcp-output destinations; destination-host evidence helps identify where a forwarder actually sends data.
  • **scheduler.log** shows whether scheduled searches ran or were skipped. **TailingProcessor** helps with file inputs; parsing/aggregation messages help with event-boundary errors.
  • **Internal log files** live under var/log/splunk; default index storage is under var/lib/splunk. Internal logs rotate under logging configuration, so preserve the relevant time range before reproducing an issue.

Health checks and evidence collection

  • **Monitoring Console** combines internal-data searches and REST information for deployment health, ingestion, indexing, search and resource dashboards. Configure its role inventory and peer connections accurately.
  • **splunk diag** collects a support package of configuration, internal logs and system details. It is not a full indexed-data backup, but may contain sensitive settings, search artifacts and environment information.
  • **Diag scope** can exclude dispatch/search artifacts with **--disable=dispatch**. Review package contents and retention; do not assume a collected package is automatically sanitized or deleted.
  • **Logging levels** can be adjusted through Splunk Web, CLI or log-local.cfg. Target the relevant component, capture the failure and restore normal levels to limit overhead and disk growth.
  • **Crash diagnosis** uses crash logs, splunkd_stderr.log, OS evidence and the end of splunkd.log. A startup marker without a matching orderly pipeline-finished marker suggests an unclean termination; it does not establish the cause.