GO KALI FREE

Splunk

Information Gathering

Intermediatelow risk

Splunk Enterprise is a proprietary data platform for searching, monitoring and analysing machine-generated data. It supports log analysis, IT operations and observability, and it provides the platform on which the separately licensed Splunk Enterprise Security premium SIEM app runs. Splunk is not packaged by Kali Linux: download the official Linux .deb, .rpm or .tgz package from splunk.com, sign in when required, and substitute the actual downloaded filename for the <version> placeholder used in this guide.

Installation

sudo dpkg -i splunk-<version>-linux-amd64.deb

Basic Syntax

/opt/splunk/bin/splunk search 'index=main error'

Quick Facts

Full Name
Splunk Enterprise
License
Proprietary commercial software
Owner
Cisco
Category
Machine Data and Log Analysis
Type
Data Platform and SIEM Foundation
First Released
2003
Latest Release
Splunk Enterprise 10.6.1
Free Tier
500 MB/day, single standalone instance

Tool Overview

Splunk Enterprise is a proprietary platform for indexing, searching, monitoring and analysing machine-generated data. Michael Baum, Rob Das and Erik Swan founded Splunk in 2003. Cisco announced an agreement to acquire Splunk on 2023-09-21 and completed the acquisition on 2024-03-18 for approximately $28 billion at $157 per share. Splunk remains proprietary commercial software rather than an open-source project.

The platform's central investigation language is SPL, the Search Processing Language. A beginner can start with field terms such as `index=main`, `sourcetype=access_combined`, `host=web01`, `status=404`, `earliest=-24h` and `latest=now`, then transform matching events through commands such as `stats`, `timechart`, `chart`, `table`, `eval`, `where`, `top`, `rare`, `dedup`, `sort`, `head`, `fields`, `rename`, `rex`, `lookup`, `eventstats`, `streamstats`, `bin` and `fillnull`. Each pipeline should be interpreted in the context of its time range, index, source type and field extraction.

Splunk is often called a SIEM tool, but accurate product naming matters. Splunk Enterprise is the data platform, while Splunk Enterprise Security is the separately licensed premium SIEM app that runs on it. Splunk SOAR addresses automation and orchestration, and ITSI provides IT service intelligence. The Common Information Model helps normalize fields across sources, while knowledge objects such as saved searches, dashboards, alerts, lookups, event types, tags, macros and data models make validated searches reusable.

Linux installation uses an official package downloaded from splunk.com. There is no Kali Linux Splunk package and no supported `apt install splunk` route. The official DEB installs beneath `/opt/splunk`; RPM and tar packages are also available. The first installation receives a 60-day Enterprise Trial. A deployment can later switch to Splunk Free, which does not expire but permits only 500 MB of indexing per day and removes authentication, alerting and distributed-management capabilities.

Quick Reference Commands

Verified quick-reference commands for Splunk
CommandPurpose
sudo dpkg -i splunk-<version>-linux-amd64.debInstall the downloaded official Splunk Enterprise DEB package into /opt/splunk.
/opt/splunk/bin/splunk start --accept-licenseAccept the licence and start Splunk for the first time.
/opt/splunk/bin/splunk statusCheck whether the local Splunk instance is running.
/opt/splunk/bin/splunk add monitor /var/log/auth.log -sourcetype syslog -index mainMonitor the authentication log as syslog data in the main index.
/opt/splunk/bin/splunk search 'eventtype=webaccess error' -wrap 0Run a historical CLI search without wrapped output.
/opt/splunk/bin/splunk btool inputs list --debugInspect merged input settings and their source files.
Splunk Enterprise Installation GuideAbout Splunk FreeSplunk Administrative CLI CommandsSplunk Download

Common Commands

sudo dpkg -i splunk-<version>-linux-amd64.debInstall the downloaded official Splunk Enterprise DEB package into /opt/splunk.
rpm -i splunk-<version>-linux-amd64.rpmInstall the downloaded official Splunk Enterprise RPM package with /opt/splunk as the default location.
tar xvzf splunk-<version>-linux-amd64.tgz -C /optExtract the downloaded official Splunk Enterprise tar package beneath /opt.
/opt/splunk/bin/splunk start --accept-licenseAccept the licence and start Splunk for the first time so the administrator account can be created.
/opt/splunk/bin/splunk startStart an installed Splunk Enterprise instance.
/opt/splunk/bin/splunk stopStop the local Splunk Enterprise instance.
/opt/splunk/bin/splunk restartRestart Splunk after an approved configuration or licence change.
/opt/splunk/bin/splunk statusDisplay whether the local Splunk instance is running.
/opt/splunk/bin/splunk versionPrint the installed Splunk version for inventory and troubleshooting.
/opt/splunk/bin/splunk helpDisplay help for the installed Splunk command-line interface.
/opt/splunk/bin/splunk enable boot-startConfigure Splunk to start during system boot.
/opt/splunk/bin/splunk disable boot-startDisable the previously configured Splunk boot-start behavior.
/opt/splunk/bin/splunk add monitor /var/log/Create a monitor input for files beneath /var/log.
/opt/splunk/bin/splunk add monitor /var/log/auth.log -sourcetype syslog -index mainMonitor the authentication log and send its events to the main index with the syslog source type.
/opt/splunk/bin/splunk list monitorList configured monitor inputs.
/opt/splunk/bin/splunk remove monitor /var/logRemove the monitor input associated with /var/log.
/opt/splunk/bin/splunk add oneshot /var/log/auth.log -index main -sourcetype syslogIndex the selected authentication log once instead of monitoring it continuously.
/opt/splunk/bin/splunk enable listen 9997Enable a Splunk receiving port on the standard splunktcp port 9997.
/opt/splunkforwarder/bin/splunk add forward-server <indexer-host>:9997 -auth admin:<password>Configure a Universal Forwarder to send data to the selected Splunk receiver.
/opt/splunkforwarder/bin/splunk list forward-serverList forwarding destinations configured on the Universal Forwarder.
/opt/splunk/bin/splunk list licensesList the licences known to the local Splunk instance.
/opt/splunk/bin/splunk list jobsList search jobs visible through the Splunk CLI.
/opt/splunk/bin/splunk list indexList indexes configured on the Splunk instance.
/opt/splunk/bin/splunk search 'eventtype=webaccess error' -wrap 0Run the documented historical search and disable line wrapping in its CLI output.
/opt/splunk/bin/splunk rtsearch 'error' -wrap falseRun a real-time search for events containing error without wrapped output.
/opt/splunk/bin/splunk set web-port 8000Set Splunk Web to the standard port 8000.
/opt/splunk/bin/splunk show web-portDisplay the currently configured Splunk Web port.
/opt/splunk/bin/splunk validate filesValidate installed Splunk files using the Splunk-provided validation command.
/opt/splunk/bin/splunk btool inputs list --debugDisplay merged inputs configuration and the files from which each setting originated.
/opt/splunk/bin/splunk diagCreate diagnostic data for controlled troubleshooting.

Step-by-Step Guide

  1. 1Define the lab or operational scope before collecting data, including which hosts, files, indexes and users are authorized, because machine data can contain authentication records, internal addresses and other sensitive information.
  2. 2Download the official Splunk Enterprise Linux package from Splunk Download; a splunk.com login is required, Kali Linux has no Splunk package, and `apt install splunk` must not be used.
  3. 3Substitute the actual downloaded filename for `splunk-<version>-linux-amd64.deb`, `splunk-<version>-linux-amd64.rpm` or `splunk-<version>-linux-amd64.tgz`, then install it with the documented command for that package format.
  4. 4If Splunk should run as a dedicated operating-system user, create and prepare that account through your approved system-administration process before first start because the Splunk installer does not create a `splunk` user.
  5. 5Run `/opt/splunk/bin/splunk start --accept-license`, create the administrator account and a strong password when prompted, and do not expect the historical `admin/changeme` credentials to work on a fresh current installation.
  6. 6Confirm service state with `/opt/splunk/bin/splunk status`, note that Splunk Web normally uses port 8000 and splunkd management uses port 8089, and enable boot start only when persistent service operation is intended.
  7. 7Add a narrowly scoped input such as `/opt/splunk/bin/splunk add monitor /var/log/auth.log -sourcetype syslog -index main`, then verify it with `/opt/splunk/bin/splunk list monitor` before broadening collection.
  8. 8Search the resulting events with SPL, validate extracted fields and time ranges, create only the dashboards or saved knowledge objects that are needed, and monitor licence ingestion so the selected Trial, Free or Enterprise licence remains suitable.

Use Cases

Centralized Log Analysis

Index approved system and application logs, filter events by time, host, source, source type or index, and transform the results into tables and aggregate counts.

Security Investigation

Search authentication, web and internal machine data for operational or security-relevant patterns while preserving the exact SPL and time range used for each investigation.

Trend and Event Analysis

Use stats, chart and timechart to summarize machine data and reveal changes in event volume or status values over selected periods.

Distributed Log Collection

Collect approved files on remote Linux systems with the lightweight Universal Forwarder and send them to a receiver on splunktcp port 9997.

Reusable Knowledge Objects

Create saved searches, dashboards, lookups, event types, tags, macros and data models so reviewed analysis can be reused consistently.

Enterprise SIEM Foundation

Provide the indexed data and normalization foundation required by a separately licensed deployment of the premium Splunk Enterprise Security SIEM app.

Key Features

Best Practices

Common Errors

apt cannot install a Splunk package
Download the official DEB, RPM or tar package from Splunk Download and install the actual downloaded filename; never use `apt install splunk`.
DEB package file is not found
Replace the placeholder with the complete official package filename, including its build identifier.
DEB installation path is invalid
Use the real `/opt/splunk` directory because the DEB package installs only there and does not support that path as a symlink.
Fresh administrator login does not match historical credentials
Create and record the strong administrator password requested during first start; do not rely on the historical default.
Forwarder destination does not receive data
Run `splunk enable listen 9997` on the intended receiver, verify the configured forward server and restart the forwarder.
SPL search returns no expected events
Validate available data with a broader authorized search, then add the intended index, source type, host, field and time constraints incrementally.
Search is disabled under Splunk Free
Review ingestion against the 500 MB/day allowance and move to a suitable licence or reduce the approved indexed volume.
Monitor input behaves differently from the visible file
Run `splunk btool inputs list --debug` to inspect the effective merged inputs configuration and each setting's source.

People Also Ask

What is Splunk used for?

Splunk Enterprise indexes, searches, monitors and analyses machine-generated data. It is used for log analysis, IT operations, observability and as the underlying platform for the separately licensed Splunk Enterprise Security SIEM app.

Can I install Splunk with apt on Kali Linux?

No. Kali Linux has no Splunk package. Download an official Linux DEB, RPM or tar package from splunk.com and substitute the actual downloaded filename for the package placeholder.

How much data can Splunk Free index?

Splunk Free permits 500 MB of indexing per day on one standalone instance and does not expire, but it has no login, alerting, users, roles, distributed search, indexer clustering, deployment management or report acceleration.

What are Splunk search commands?

SPL is the Search Processing Language used to filter and transform indexed events with commands such as search, stats, timechart, table, eval, where, top, dedup, rex and lookup.

What does Splunk Universal Forwarder do?

The Universal Forwarder is a separate lightweight package that has no Splunk Web or Python and sends monitored data to a Splunk receiver, commonly over splunktcp port 9997.

Is Splunk better than Wazuh?

Splunk is proprietary commercial software, while Wazuh is a free open-source SIEM/XDR platform. Splunk Enterprise Security is a premium SIEM app licensed separately on top of Splunk Enterprise.

Related Tools

Nmap

Information Gathering

Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.

OpenVAS

Vulnerability Analysis

OpenVAS (Open Vulnerability Assessment System) is a full-featured vulnerability scanner providing a comprehensive architectural network engine that checks endpoints against thousands of active vulnerability feeds.

Wireshark

Sniffing & Spoofing

Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.

Lynis

Vulnerability Analysis

Lynis is a battle-tested security auditing tool for systems running Linux, macOS, or Unix-based operating systems. It performs an in-depth local scan to discover security weaknesses, configuration flaws, and system hardening opportunities.

Wazuh

Information Gathering

Wazuh is a free, open-source security platform combining SIEM and XDR capabilities for endpoints and cloud workloads. Its architecture uses a universal endpoint agent plus the Wazuh server, OpenSearch-based Wazuh indexer and OpenSearch Dashboards-based Wazuh dashboard, with Filebeat sending alerts from the server to the indexer. Kali Linux has no Wazuh package: install only the agent through the official Wazuh APT repository on Kali, and run the manager, indexer and dashboard on a supported 64-bit Linux host such as Ubuntu 22.04 or 24.04.

Amass

Information Gathering

OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.

Related Cybersecurity Guides

OSINT · Beginner

DNS Enumeration Guide: Complete Domain Reconnaissance

Master DNS enumeration techniques from basic queries to advanced zone transfers, subdomain brute forcing, and DNS security assessment using Kali Linux tools.

OSINT · Intermediate

Reconnaissance Workflow: Complete Information Gathering Process

Learn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.

OSINT · Intermediate

WHOIS Lookup Guide: Domain Registration Intelligence

Learn how to use WHOIS lookups for domain registration intelligence, including querying registrar data, analyzing historical records, and privacy protection.

OSINT · Intermediate

Amass Guide: Open Source Attack Surface Mapping

Learn to use Amass for comprehensive attack surface mapping including DNS enumeration, subdomain discovery, integration with APIs, and visualizations.

Frequently Asked Questions

What is Splunk?

Splunk Enterprise is a proprietary platform for searching, monitoring and analysing machine-generated data. It indexes events and lets users investigate them with Search Processing Language, commonly called SPL. The platform supports log analysis, IT operations and observability, while the separately licensed Splunk Enterprise Security app adds premium SIEM capabilities.

What is Splunk used for?

Splunk is used to collect and search machine data, investigate operational or security events, aggregate fields, build time-based views and create reusable knowledge objects such as saved searches, dashboards, lookups, event types, tags, macros and data models. Security teams can use the platform for log analysis, but a deployment should not be described as Splunk Enterprise Security unless the separate premium ES app is licensed and installed.

How do I install Splunk on Kali Linux?

Kali Linux does not provide a Splunk package, so do not run `apt install splunk`. Sign in at the official Splunk Download page, download the Linux DEB package, substitute its actual filename for the placeholder, and run `sudo dpkg -i splunk-<version>-linux-amd64.deb`. The DEB installs only into the real `/opt/splunk` directory, which must not be a symlink.

How do I install Splunk Enterprise on Linux?

Use the official package matching the Linux system: `sudo dpkg -i splunk-<version>-linux-amd64.deb`, `rpm -i splunk-<version>-linux-amd64.rpm`, or `tar xvzf splunk-<version>-linux-amd64.tgz -C /opt`. The package filename contains a variable build identifier, so replace `<version>` with the complete downloaded filename rather than typing the placeholder literally.

Is Splunk Free available?

The first installation receives a 60-day Enterprise Trial licence. Splunk Free does not expire and permits 500 MB of indexing per day, but it is limited to a single standalone instance. Free has no login, alerting, users or roles, distributed search, indexer clustering, deployment management, forwarding to non-Splunk software over TCP or HTTP, or report acceleration.

How do I switch the Enterprise Trial to Splunk Free?

In Splunk Web, open Settings, then Licensing, choose Change License Group, select the Free licence and restart Splunk. On Splunk Free, users are passed directly into Splunk Web as an administrator-level user because the Free licence has no login or user and role management, so it should be operated only in an appropriately isolated environment.

What is Splunk SPL?

SPL is Splunk's Search Processing Language. A search can select data with terms such as `index=main`, `sourcetype=access_combined`, `host=web01`, `status=404`, `earliest=-24h` and `latest=now`, then pass results through commands such as `stats`, `timechart`, `table`, `eval`, `where`, `top`, `dedup`, `sort`, `rex`, `lookup` and `iplocation`.

What is Splunk Universal Forwarder used for?

The Universal Forwarder is a separate lightweight Splunk package named `splunkforwarder`. It installs by default beneath `/opt/splunkforwarder`, has no Splunk Web and has no Python. It monitors approved inputs and forwards their data to a Splunk receiver, commonly on splunktcp port 9997.

How do I install and configure Splunk Universal Forwarder?

Install the official forwarder package with `sudo dpkg -i splunkforwarder-<version>-linux-amd64.deb`, start it with `/opt/splunkforwarder/bin/splunk start --accept-license`, configure the receiver with `/opt/splunkforwarder/bin/splunk add forward-server <indexer-host>:9997 -auth admin:<password>`, and add an approved input with `/opt/splunkforwarder/bin/splunk add monitor /var/log -sourcetype syslog -index main`. Enable receiving on the indexer with `splunk enable listen 9997`.

What are the default Splunk ports?

The documented defaults are port 8000 for Splunk Web, port 8089 for splunkd management and port 9997 for splunktcp receiving. Confirm the actual deployment configuration rather than assuming a default remains unchanged, and expose only the ports required by the approved architecture.

Is Splunk Enterprise the same as Splunk SIEM?

Splunk Enterprise provides the underlying data platform. Splunk Enterprise Security is a separately licensed premium SIEM app that runs on that platform. Splunk SOAR provides automation and orchestration, and ITSI provides IT service intelligence. These product names describe distinct capabilities and should not be used interchangeably.

Is Splunk open source?

No. Splunk is proprietary software and is now owned by Cisco. Cisco announced its acquisition of Splunk on 2023-09-21 and closed the transaction on 2024-03-18 for approximately $28 billion at $157 per share. Wazuh and Graylog provide open-source alternatives for SIEM/XDR or log-management use cases.

What is the latest Splunk Enterprise version?

Splunk Enterprise 10.6 was released on 2026-09-30, and 10.6.1 was released on 2026-10-16. The 10.6 line is supported until 2028-09-30. Splunk Enterprise 9.4 reaches end of support on 2026-12-16, so deployment planning should account for the supported lifecycle.

Splunk vs Wazuh vs Graylog — which should I choose?

Splunk is the proprietary commercial platform with a 60-day Enterprise Trial and a restricted 500 MB/day Free licence; its premium Enterprise Security SIEM app is sold separately. Wazuh is a free open-source SIEM/XDR platform built around a manager, indexer, dashboard and agents. Graylog provides open-source log management through Graylog Open, including streams, pipelines and dashboards. Wazuh is a real alternative with a dedicated tool page on this site, while Graylog is a real alternative that does not yet have a tool page on this site.

Tags

#log-analysis#siem#splunk-enterprise#splunk-spl#universal-forwarder#security-monitoring#machine-data

Output Explanation

Splunk CLI output depends on the administrative command, while SPL output depends on the fields and transforming commands selected in the search. `splunk status` reports whether the local service is running; `splunk list monitor` enumerates monitor inputs; `splunk list forward-server` shows forwarding destinations; and `splunk list licenses`, `splunk list jobs` and `splunk list index` expose licence, search-job and index information respectively. A search such as `index=main sourcetype=access_combined status=404 | stats count by clientip | sort - count` produces a result table whose `clientip` column identifies each grouped client address and whose `count` column records the number of matching events. The following is illustrative lab output, not a verbatim quotation from Splunk documentation: `clientip  count` followed by `<client-ip>  <event-count>`. A time-series search such as `index=main sourcetype=access_combined status=404 | timechart count by status` returns time buckets in `_time` and a series for the grouped status value. Again, illustrative lab output would be `_time  404` followed by `<time-bucket>  <event-count>`. A result means only that indexed events matched the selected fields, time range and SPL pipeline; it does not prove that every source event was collected, parsed or retained. Empty output can result from the selected time window, index, source type, field extraction, permissions or missing data, so validate the input and search scope before concluding that an event never occurred.

Ethical Usage Notice

This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.