Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 36 ยท 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 is a platform that collects data produced by machines (servers, applications, network devices, sensors), stores it in a searchable form and lets you ask questions about it with a search language. If you have ever opened a log file, pressed Ctrl+F and wished you could do that across a thousand servers at once, with charts, alerts and a time axis, you have the idea.

This course teaches Splunk Enterprise and Splunk Cloud Platform, which share the same search language (SPL) and the same concepts. Splunk is commercial software that needs a server or a cloud account, so it cannot run on this website. Every menu, setting and command is described step by step, and small Python programs labelled stand-in let you practice the ideas (event splitting, time handling, counting) right here. We never show output from the real product unless we are certain what it prints.

What is machine data?

Machine data is the digital exhaust of computers: every request a web server handles, every login, every error, every metric. It is usually text, one line or block per event, and it is rarely tidy.

TEXT
203.0.113.7 - - [12/Nov/2026:09:14:02 +0000] "GET /cart HTTP/1.1" 200 5123
2026-11-12 09:14:03 ERROR payment-service  Card declined for order 8841
Nov 12 09:14:05 web01 sshd[2211]: Failed password for root from 198.51.100.9

Three lines, three formats, three sources. Traditional databases want a fixed schema before you load anything. Splunk takes the opposite approach: it stores the raw event first and applies structure when you search. This is called schema on read, and it is the reason Splunk copes with messy and changing data.

What Splunk does

  1. Collect. Forwarders, agents, HTTP endpoints and scripts send data to Splunk.
  2. Index. Splunk splits the stream into events, finds the timestamp of each, and stores events in compressed indexes with a search index (a word-to-event lookup).
  3. Search. You write a search in the Search Processing Language: index=web status=500 | timechart count.
  4. Visualize and act. Save the result as a report, show it on a dashboard, or turn it into an alert that sends email or opens a ticket.
flowchart LR
    S["Sources<br/>logs, metrics, APIs"] --> F["Forwarders"]
    F --> I["Indexing<br/>events + timestamps"]
    I --> Q["Search (SPL)"]
    Q --> R["Reports"]
    Q --> D["Dashboards"]
    Q --> A["Alerts"]

The four stages: collect, index, search, act.

Events, time and fields

Three ideas run through the whole product:

  • Event: one record, usually one log line or one multi-line entry (a Java stack trace is one event).
  • Timestamp: every event has a time, and the time is the primary way Splunk organizes and searches data. Most searches start with a time range.
  • Fields: name-value pairs such as status=500 or host=web01. Some are created at index time (host, source, sourcetype, index, time), most are extracted from the raw text when you search.
Python Stand-in: splitting raw text into events and finding timestamps

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Splunk does exactly this job at index time, with settings called LINE_BREAKER and TIME_FORMAT that you will meet in Getting data in.

What do people use Splunk for?

Area Typical questions
IT operations Which server is slow? What changed before the outage?
Security (SIEM) Who failed to log in 50 times? Which host talks to a bad IP?
Application monitoring Which release increased error rates?
Business analytics How many orders per hour? Where do users abandon checkout?
IoT and engineering Which machines run hot before they fail?

The same data answers all of these. A web access log serves the operations team (errors), the security team (scanners) and the business team (traffic by country).

Python Stand-in: schema on read versus schema on write

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Splunk is also not a database replacement. It is built for time-ordered, append-only event data. You search it, you do not update rows in place.

Where Splunk fits among alternatives

Open-source stacks such as the Elastic stack, Grafana Loki and OpenSearch cover similar ground; cloud providers offer their own log services. Splunk's strengths are a mature search language, the schema-on-read flexibility, a very large app ecosystem (Splunkbase) and strong security products. The concepts you learn here (index, sourcetype, time-first searching, pipelines) transfer to the others.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does schema on read mean in Splunk?

    Splunk stores the raw event and extracts fields at search time, so new fields never require reloading data.
  2. 2. Which piece of information does Splunk use first to organize and find events?

    Events are stored and searched by time, which is why almost every search begins with a time range.
  3. 3. A Java stack trace spans 12 lines. How many events should it normally be?

    Line breaking rules should keep the whole multi-line entry together as a single event.
  4. 4. What is the name of Splunk's search language?

    SPL is a pipeline language: commands connected with the | character.

Summary

  • Splunk collects, indexes and searches machine data, and turns searches into reports, dashboards and alerts.
  • Events, timestamps and fields are the three core ideas.
  • Schema on read lets Splunk handle messy, changing data.
  • It is used for IT operations, security, application monitoring and business analytics.
  • The product cannot run on this site, so stand-ins teach the ideas.

Next: Splunk products and editions