Splunk Tutorial
Learn Splunk step by step: 36 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Splunk? Machine Data, Search and the Big Picture Learn what Splunk is, what machine data means, how Splunk indexes and searches logs, and where it is used for IT operations, security and business analytics.
- Splunk Products and Editions: Enterprise, Cloud, Free and More Compare Splunk Enterprise, Splunk Cloud Platform, the free trial, licensing by ingest or workload, and add-on products such as Enterprise Security and ITSI.
- Install Splunk Enterprise and Sign In for the First Time Step-by-step Splunk Enterprise installation on Windows and Linux, starting the service, opening Splunk Web on port 8000, creating the admin user and basic checks.
- A Tour of Splunk Web: Home, Apps, Search and Settings Find your way around Splunk Web: the Home page, the apps bar, the Search and Reporting app, the time picker, search modes and the Settings and Activity menus.
- Getting Data Into Splunk: Add Data, Source Types and Indexes Upload a file, monitor a folder or listen on a port with the Add Data wizard, then set the source type, timestamp, line breaking, host and index, and verify the result.
Architecture and Setup
- Splunk Architecture: Forwarders, Indexers and Search Heads Understand the Splunk data pipeline and the main components: universal and heavy forwarders, indexers, search heads, deployment server, cluster manager and license manager.
- Splunk Deployment Topologies and Capacity Sizing Compare single-instance, distributed and clustered Splunk deployments and learn a simple method to estimate daily ingest, indexer count, storage and retention.
- Universal Forwarder Setup: Install, Receive, Monitor and Verify Install the Splunk universal forwarder, enable receiving on the indexer (port 9997), point the forwarder at it, add monitor inputs and verify the data arrives.
- Splunk Configuration Files: Stanzas, Layering and Precedence Learn how Splunk configuration files work: stanzas, key-value settings, the etc folder layout, how settings merge across apps, btool and the order of precedence.
Search Processing Language
- Splunk Search Basics: Keywords, Wildcards, Booleans and Time Ranges Write your first Splunk searches: index and sourcetype filters, keywords, quoted phrases, wildcards, AND/OR/NOT, field=value, and time ranges with earliest, latest and snap-to.
- The SPL Pipeline: where, table, fields, sort, dedup, head and rename Learn how the pipe character chains SPL commands and use the everyday shaping commands: where, search, table, fields, rename, sort, dedup, head, tail and reverse.
- SPL stats, chart, timechart, top and rare Explained Summarize data with SPL transforming commands: stats with count, sum, avg, dc and values, chart over and by, timechart span, top, rare, eventstats and streamstats.
- SPL eval Command: Calculated Fields, if, case, strftime and More Use the SPL eval command to create fields with arithmetic, conditionals (if, case), string, math, multivalue and time functions, plus null handling with coalesce and fillnull.
- Splunk Subsearches, append, join, appendcols and transaction Combine data in SPL: subsearches in square brackets, join, append, appendcols, multisearch, union, transaction and the faster stats-based alternatives for correlating events.
Fields and Extraction
- Splunk Fields: Default Fields, Metadata and Field Discovery Learn what fields are in Splunk: default fields such as host, source, sourcetype and _time, internal fields, automatic key-value discovery, the fields sidebar and field types.
- Extract Fields With rex, erex and regex in SPL Extract new fields at search time with rex and named capture groups, mode=sed, max_match, plus erex, regex filtering, spath for JSON, extract and kvform. With examples.
- Permanent Field Extractions: Field Extractor, props.conf, transforms.conf Create permanent search-time field extractions with the Field Extractor, inline EXTRACT and REPORT rules in props.conf and transforms.conf, plus delimiters, sharing and testing.
- Splunk Lookups, Field Aliases, Calculated Fields, Tags and Event Types Enrich events with CSV lookups and automatic lookups, rename fields with aliases, define calculated fields, and label events with tags and event types for reuse in searches.
Reports, Dashboards and Alerts
- Splunk Reports: Saving, Scheduling and Sharing Searches Turn a Splunk search into a report: save it, choose permissions, schedule it with cron, set schedule windows and priority, accelerate it, and read savedsearches.conf.
- Splunk Dashboards: Classic Simple XML and Dashboard Studio Build Splunk dashboards: panels and visualizations, Simple XML structure, Dashboard Studio, base searches with post-process searches, refresh settings and layout tips.
- Splunk Dashboard Inputs, Tokens and Drilldowns Make Splunk dashboards interactive: time, dropdown and text inputs, how tokens fill searches, default values, click drilldowns with $click.value$, and conditional panels.
- Splunk Alerts: Scheduled, Real-Time, Throttling and Actions Create Splunk alerts that tell you when something happens: scheduled versus real-time, trigger conditions, throttling, severity and actions such as email, webhook and log events.
Data Models and Pivot
- Splunk Data Models and Datasets: Structure Your Data Understand Splunk data models: root event, search and transaction datasets, child datasets and constraints, field types, inheritance, and searching with from, datamodel and tstats.
- Splunk Pivot: Build Reports and Charts Without Writing SPL Use Splunk Pivot to build tables and charts from a dataset: filters, split rows and columns, column values, time buckets, saving pivots as reports, and the pivot command.
- Splunk CIM and Data Model Acceleration Explained Learn the Splunk Common Information Model: standard field names, tags and event types, mapping vendor logs, and how data model acceleration and tstats make searches fast.
Administration and Indexing
- Splunk Indexes, Buckets and Data Retention Understand how Splunk stores data: indexes, event versus metrics indexes, the hot, warm, cold, frozen and thawed bucket lifecycle, indexes.conf settings and retention planning.
- Splunk inputs.conf, props.conf and transforms.conf Explained Learn the three core Splunk config files: inputs.conf to collect data, props.conf for line breaking and timestamps, transforms.conf for routing, filtering and masking data at index time.
- Splunk Users, Roles, Capabilities and Knowledge Object Permissions Control who can do and see what in Splunk: authentication methods, roles with capabilities and index access, role inheritance, search filters and quotas, and knowledge object sharing.
- Monitoring and Troubleshooting Splunk: _internal, Queues and the Monitoring Console Find out what is wrong with Splunk itself: the Monitoring Console, the _internal index, blocked queues, skipped searches, license usage, the search job inspector and the CLI helpers.
Security and Apps
- Splunk for Security: Detections, Correlation Searches and Risk Use Splunk for security monitoring: log sources, SPL detections for brute force and impossible travel, correlation searches, notable events, risk-based alerting and MITRE ATT&CK mapping.
- Splunk Apps, Add-ons and Splunkbase: Structure and Packaging Learn how Splunk apps and technology add-ons differ, the app directory layout, app.conf, default versus local, installing from Splunkbase, building your own app and deploying it.
- Splunk REST API, HTTP Event Collector and SDKs Automate Splunk: send data with the HTTP Event Collector, create and read search jobs through the REST API on port 8089, use tokens, output modes and the Python SDK.
Projects and Practice
- Splunk Project: Analyze Web Access Logs from Ingest to Dashboard A hands-on Splunk project: onboard web access logs, extract fields, write searches for traffic, errors and slow pages, build dashboard panels and an alert, and check the logic in Python.
- Splunk Project: Build a Security Monitoring Dashboard A Splunk security project: normalize authentication logs, accelerate a data model, write failed-login and rare-process detections, build a monitoring dashboard and tune with allow-lists.
- Splunk Project: License Usage and Storage Capacity Planning Plan Splunk capacity: measure daily ingest with license_usage.log, find the biggest sources, reduce volume, estimate storage and indexer needs and build a capacity dashboard.
- Splunk Practice Questions and Scenario Drills with Answers Test your Splunk knowledge with scenario drills on reports, dashboards, alerts, data models, indexing, roles, security and troubleshooting, each with an answer and a self-check tool.