Splunk Core User Certification Comprehensive Study Guide
Splunk Components and Basic Architecture
Splunk Components ( of exam material):
Search Head: This component is the primary interface used to search data, analyze results, create reports, build dashboards, and configure alerts.
Indexer: This component is responsible for four key tasks: receiving data, processing it, indexing it (turning raw data into searchable events), storing that data, and returning search results when queried.
Forwarder: This component is used to collect data from various sources and send that data to a Splunk Index.
Index: This is the repository or storage location where Splunk stores its indexed data.
Basic Data Flow Architecture:
The standard process follows this path: Data Source Forwarder Indexer Search Head User.
Uses of Splunk and Machine Data Examples
Core Capabilities:
Splunk is designed to collect and index machine data.
It allows users to search, analyze, and visualize data.
It provides tools to monitor systems and investigate specific events.
Users can generate reports, dashboards, and automated alerts based on the data.
Typical Machine Data Examples:
Windows Event Logs
Linux logs
Firewall logs
Web server logs
Application logs
Network logs
Security logs
Splunk Apps, Add-ons, and User Settings
Splunk Apps:
An App is a packaged collection of functionality built for a specific purpose.
It typically contains searches, reports, dashboards, visualizations, and specific configurations.
Apps versus Add-ons:
App: Primarily helps users work with and analyze data.
Add-on: Primarily assists in the collection, parsing, normalization, or preparation of data. Note that advanced add-on development is generally outside the scope of the Core User exam.
Customizable User Settings:
Users can adjust preferences for Time zone, Default app (the app that opens upon login), Search preferences, and Display preferences.
Basic Splunk Navigation
Interface Components:
Home page: The landing page for Splunk Web.
Apps: The menu or area to access installed applications.
Search & Reporting: The default app used for most search activities.
Search bar: Where SPL (Search Processing Language) queries are entered.
Time range picker: Tool to define the temporal boundaries of a search.
Fields sidebar: Located to the left of search results, showing Selected and Interesting fields.
Timeline: A visual histogram of event distribution over time.
Event results: The list of events returned by a search.
Search job controls: Tools to manage the execution of a search (e.g., pause, stop).
Basic Searching Concepts ( of exam material)
Basic Search Syntax:
Keyword: Searching for a single word, such as
, returns events containing that term.Index Search: Specifying the storage location with
.Field Search: Targeting a specific attribute, such as
.Combined Criteria: To search multiple fields simultaneously, use
.
Boolean Operators:
AND: Used when both conditions must be true (e.g.,
). Note: AND is implied between search terms if not explicitly written.OR: Used when either condition can match (e.g.,
).NOT: Used to exclude results that match a criteria (e.g.,
).
Wildcards and Phrases:
Wildcards: The
character matches any number of characters. For example,matches,, and.Search Phrases: Quoted strings are required to search for a specific multi-word phrase, such as
.
Time Range Management
Time Range Principles:
Searches only return events within the selected window. If an event happened yesterday but the search is set to "Last minutes," the event will not appear.
Relative Time Modifiers:
: minutes ago.: hour ago.: hours ago.: days ago.: Represents the current time.
Earliest and Latest: These define the search period boundaries.
searches the previous hours up to current time.
Identifying Search Results and Event Details
Event Components:
Timestamp: The date and time the event occurred.
Raw event: The original, unformatted machine data.
Fields / Values: Key-value pairs extracted from the data, such as
,, and.Source: The specific file or input source (e.g.,
).Sourcetype: The data format (e.g.,
).
Timeline Analysis:
The timeline shows event distribution and volume spikes.
Spikes might indicate attack activity, system problems, sudden high traffic, or application errors.
Search Jobs:
A search job is the process of executing a query.
Controls include Start, Pause, Stop/cancel, and progress monitoring.
Results can be saved for future use or exported to various formats.
Using Fields in Searches ( of exam material)
Field Definitions:
A field is a named piece of information (e.g.,
,,).A value is the data assigned to that field (e.g.,
,,).
The Four Critical Metadata Fields:
index: Defines where the data is stored.
host: Defines the system associated with the data.
source: Defines where the data input originated (path or source).
sourcetype: Defines the type or format of the data.
Fields Sidebar Categories:
Selected Fields: Fields currently displayed in the event list.
Interesting Fields: Fields present in at least of the resulting events that Splunk suggests may be relevant.
Comparison Operators:
(equals)(does not equal)>(greater than)< (less than)
>=(greater than or equal to)<=(less than or equal to)
Search Processing Language (SPL) Fundamentals ( of exam material)
The Pipe Character ():
This character is used to pass the results from the previous command to the next command. The flow follows: Search Command.
The Search Pipeline:
A typical pipeline order:
.
: Find the raw data.: Calculate counts per user.: Sort results by the count in descending order.
Essential SPL Commands:
: Renders specific fields in a tabular format (e.g.,).: Specifically includes or excludes fields from the results (e.g.,).: Changes a field label (e.g.,).: Removes duplicate events based on a field (e.g.,).: Orders results. Use a minus sign () after sort for descending orders (e.g.,).
Basic Transforming Commands ( of exam material)
top: Finds the most frequent/common values (e.g.,
).rare: Finds the least frequent/common values (e.g.,
).stats functions:
: Number of events.: Adds values of a numerical field.: Calculates the mean.: Finds the smallest value.: Finds the largest value.: Calculates the distinct count (the number of unique values).
Reports, Dashboards, and Visualizations ( of exam material)
Reports:
A report is essentially a saved search. It is reusable and can serve as the source for visualizations.
Statistical Reports:
These present data in table form, such as listing a column for "User" and a column for "Count" (e.g., cory: , alex: , john: ).
Visualizations:
Single value: Best for total metrics (e.g., Total alerts = ).
Line chart: Best for viewing events over a temporal trend.
Bar chart: Best for comparing categories (e.g., Events by user).
Other options include Column, Pie, and Area charts.
Dashboards:
A dashboard is a compiled collection of panels. Each panel displays information from a search or report, providing a comprehensive overview of system status (e.g., showing failed logins, successful logins, and malware alerts simultaneously).
Data Lookups ( of exam material)
Lookups:
A lookup enriches internal results with external data. For instance, matching an IP address from a log (
) against a CSV file to add afield (e.g.,).Lookup File: The physical data storage, commonly a CSV with rows and columns including field names.
Lookup Definition: The configuration within Splunk that tells the system how to interpret and use the lookup file.
Automatic Lookups:
These are configured to automatically append external data to search results whenever a matching field (like an IP or Username) is present in the search.
Lookup Syntax:
matches thefield and adds afield to the results.
Scheduled Reports and Alerts ( of exam material)
Scheduled Reports:
Saved searches that run autonomously on a set frequency (every minutes, every hour, day, or week). At a specific start time, the search runs for a specified time range and generates a report.
Alerts:
Alerts trigger when specific search conditions are met (e.g.,
Failed\ logins\ >\ 10).Conditions: Can be based on whether any result is returned, if the number of results exceeds a threshold, or if results meet specific secondary criteria.
Actions: Alerts can trigger emails, system notifications, or other pre-configured actions.
Fired Alerts: Previous alert triggers can be reviewed to identify when they fired and what specific results caused the trigger.
Search Optimization Principles
Specifying the Index: Searching
is significantly faster than just searchingbecause it limits the data blocks the Indexer must scan.Time Range Selection: Searching "Last minutes" is more efficient than searching "All time" if that specific window is all that is required.
Narrows Early: Filtering criteria like
should be added as early as possible in the search string to reduce the volume of data passed through the pipeline.
Knowledge Objects Distinction
Core Certified User Focus: Reusable objects including Reports, Alerts, Dashboards, and Lookups.
Power User Focus: Advanced objects such as Tags, Event Types, Workflow Actions, Data Models, Field Aliases, Calculated Fields, and Macros. These are separate from the Core User requirements.