Splunk · Free Practice Questions · Last reviewed May 2026
24 original exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
15% of exam · 6 sample questions below
An analyst wants to find the top 5 users who have the highest total bytes transferred. The data has fields 'user' and 'bytes'. Which search should be used?
| stats max(bytes) as max_bytes by user | sort - max_bytes | head 5
| stats sum(bytes) as total_bytes by user | sort - total_bytes | head 5
Aggregating bytes per user with sum() collapses each user's events into one total, then sort - total_bytes orders descending and head 5 returns the highest five. This directly satisfies the requirement for top users by total bytes transferred.
| sort - bytes | head 5 | table user, bytes
| top limit=5 user
A search uses 'transaction' to group events by session, but the results show too many transactions with only one event. What is the best way to filter out single-event transactions?
| transaction ... | where eventcount > 1
Filtering after the `transaction` command with `where eventcount > 1` works because `transaction` adds an `eventcount` field to each grouped result, letting you discard single-event groups. This directly satisfies the stem's constraint of removing one-event transactions while preserving genuine multi-event sessions.
Add maxspan=5m to the transaction command
| transaction maxevents=2 ...
| transaction ... | where eventcount=2
A Splunk admin wants to track the number of unique users who accessed a system each hour over the past 24 hours. Which search provides the correct result?
index=main earliest=-24h | timechart span=1h dc(user) as unique_users
The `dc(user)` function counts distinct values, satisfying the unique-user requirement, while `timechart span=1h` buckets results into hourly intervals across the 24-hour window. Together they produce one row per hour showing how many separate users accessed the system, exactly matching the stem's tracking goal.
index=main earliest=-24h | timechart span=1h values(user)
index=main earliest=-24h | stats dc(user) by _time | timechart span=1h dc(user)
index=main earliest=-24h | timechart span=1h count by user
A search returns many events, and the analyst wants to see a summary table of the top 5 values of the field `src_ip` along with the count of events for each. Which command should be used?
eventstats
top
The top command returns a tabular summary of the most frequent field values with their event counts, directly satisfying the requirement for the top 5 src_ip values. Its limit parameter defaults to 10 but can be set to 5, whereas stats count by src_ip produces an unsorted full list.
sort
rare
An analyst needs to identify events where the field `response_time` is more than 2 standard deviations above the average response_time for the same `host`. Which approach should be used?
Use `eventstats avg(response_time) as avg, stdev(response_time) as stdev` then `where response_time > avg+2*stdev`
Use `streamstats avg(response_time) as avg, stdev(response_time) as stdev by host` then `where response_time > avg+2*stdev`
Use `stats avg(response_time) as avg, stdev(response_time) as stdev by host` then `where response_time > avg+2*stdev`
Use `eventstats avg(response_time) as avg, stdev(response_time) as stdev by host` then `where response_time > avg+2*stdev`
eventstats computes the per-host average and standard deviation across all events while preserving each row, so the subsequent where clause filters events exceeding two standard deviations above their host's mean, exactly the per-host statistical comparison required.
An analyst runs `index=web status=500 | top 10 uri` and gets results. Which statement is true about the 'top' command's behavior?
It returns the 10 URIs that appeared most recently.
It computes the average latency per URI and shows the top 10.
It sums a numeric field per URI and shows the top 10 sums.
It requires a 'by' clause to specify the field to group by.
It counts the number of events per URI and displays the 10 with the highest count.
The top command groups events by the uri field, computes a count per distinct URI, then returns only the 10 highest-count values in descending order. It satisfies the stem's requirement of identifying the most frequent 500-status URIs, not listing raw events.
Want more Advanced Searching and Statistics practice?
Practice this domain30% of exam · 6 sample questions below
Which TWO of the following are valid uses of the Common Information Model (CIM) in Splunk?
Defining user roles and permissions for data access.
Managing license usage across indexers.
Creating new indexes for faster search performance.
Defining tags and event types to categorize data.
CIM normalises disparate source data into common fields, and tags plus event types categorise that data so searches and dashboards work across sourcetypes. Defining tags and event types is therefore a valid CIM use, supporting consistent field naming and accelerated data models.
Normalizing data from different sources to a common field naming convention.
Normalising disparate source data onto shared field names is precisely what the CIM delivers: its data models map vendor-specific fields (such as src_ip or clientip) to standard names like src, enabling consistent searches, reports and correlation across heterogeneous inputs without per-source rewriting.
Which THREE of the following are best practices for creating saved searches?
Save the search without scheduling it to avoid resource usage.
Set an appropriate time range to limit the data scanned.
Setting a narrow time range restricts the search to only the indexed events within that window, reducing the volume of data Splunk must scan. This directly satisfies the stem's efficiency constraint, cutting search cost and latency while returning results faster than an unbounded all-time search would.
Use the `summary` indexing feature for searches that run frequently.
Summary indexing writes precomputed results into a separate index, so frequently scheduled searches read compact summarised data instead of rescanning raw events. This satisfies the best-practise constraint of reducing search load for searches that run often.
Avoid specifying a time range to use the default.
Use descriptive names that indicate the purpose of the search.
Descriptive saved search names state the search's purpose, letting administrators and analysts identify, reuse and audit searches without opening each one. This satisfies the best-practise constraint of maintainability across a shared Splunk deployment containing many saved searches.
A Splunk administrator notices that a scheduled saved search `Daily Summary` fails every day at 2:00 AM with the error "Search job expired due to inactivity." The search runs against a large index and takes about 30 minutes to complete. What is the most likely cause?
The user who owns the saved search does not have permissions to run it at that time.
The indexer has reached its license quota and stops processing.
The scheduled search is configured with a time limit shorter than 30 minutes.
Search job expiration occurs when the time limit is exceeded.
The search is consuming too much disk space.
Which TWO of the following are valid ways to create a macro in Splunk? (choose two)
Add a macro definition to props.conf under a [source] stanza.
Use the CLI command `splunk add macro` with the macro definition.
Navigate to Settings > Advanced search > Search macros and click 'New'.
Settings > Advanced search > Search macros exposes the macro management page where 'New' creates a macro, defining name, arguments and definition. This is a supported creation path alongside defining macros directly in a search.
Create a macros.conf file in $SPLUNK_HOME/etc/system/local/ and add the macro definition.
macros.conf in $SPLUNK_HOME/etc/system/local/ is a supported configuration file location, and definitions placed there are loaded by Splunk as global macros. This is the standard file-based method for creating macros without using Settings > Advanced Search > Search macros in the UI.
Edit the macros.conf file in the app's default directory.
Which TWO of the following are valid reasons to use the Common Information Model (CIM) in a Splunk environment?
It improves the ability to correlate events from different technologies.
CIM normalises fields and tags across disparate source types into shared data models, so events from different technologies align on common values. That alignment is what makes cross-technology correlation possible, satisfying the requirement for correlating events from different technologies.
It enables searching across different data sources with common field names.
CIM maps vendor-specific fields to standard CIM field names within each data model, so searches reference consistent names regardless of source. This enables a single search across different data sources, satisfying the requirement for common field names.
It improves search performance by pre-aggregating data.
It provides built-in security monitoring use cases.
It eliminates the need for custom field extractions.
Order the steps to configure a field extraction using the Field Extractor (FX) in Splunk.
1. Select a sample event, 2. Highlight the field value in the event, 3. Name the field, 4. Save the extraction.
This is the correct order because the Field Extractor requires you to first choose a sample event to work with, then identify the specific value by highlighting it, then assign a field name, and finally save the configuration.
1. Highlight the field value, 2. Select a sample event, 3. Name the field, 4. Save the extraction.
1. Name the field, 2. Select a sample event, 3. Highlight the field value, 4. Save the extraction.
1. Select a sample event, 2. Name the field, 3. Highlight the field value, 4. Save the extraction.
Want more Macros, Saved Searches and CIM practice?
Practice this domain30% of exam · 6 sample questions below
A dashboard shows a single-value visualization of total sales. The underlying search uses `| stats sum(sales)`. The dashboard refreshes every 5 minutes, but the value only updates when the page is manually reloaded. Which setting is MOST likely missing?
The 'Token delay' is too high.
The search is not scheduled or set to 'Auto' for the panel.
A single-value panel only re-runs its search when the dashboard refreshes if the panel search is scheduled or set to Auto. Without that, the visualisation renders once at load, so the five-minute refresh interval cannot update the total, matching the reported stale value.
The time range picker is set to 'All time'.
The dashboard's 'Auto-refresh' interval is not set.
A dashboard uses a timechart to show CPU usage over 24 hours. The time range selector is set to 'Last 7 days'. The chart displays data only for the last 24 hours. Which visualization setting is MOST likely causing this?
The chart's 'Time range override' is set to 24 hours.
A time range override on the visualisation forces the panel to ignore the dashboard's Last 7 days selector and render only its own fixed window. Setting it to 24 hours truncates the chart to the last day, matching the observed behaviour.
The 'Max rows' is set to 24.
The 'Span' is set to 1 hour.
The data source only retains 24 hours.
An organization uses Splunk to monitor network traffic. They have a CIDR lookup file that maps IP ranges to departments. When they run a search using `| lookup cidr_lookup IP OUTPUT department`, some IP addresses do not return a department even though the IPs are within the defined ranges. What is the most likely issue?
The lookup definition is not configured as a CIDR type
A lookup definition must have its match type set to CIDR for Splunk to match an IP against a range; otherwise it performs exact string matching, so only IPs listed verbatim return a department. Configuring CIDR resolves the missing results.
The IP addresses in the events are in lowercase
The lookup file is not in CSV format
The lookup file is compressed and not being read correctly
Which TWO of the following are valid methods to create a lookup table in Splunk?
Use the eval command to create a lookup definition
Use the stats command to aggregate data into a lookup
Upload a CSV file through the Splunk Web interface
Splunk Web's Settings > Lookups > Lookup table files workflow accepts a CSV upload, which Splunk stores as a lookup definition usable by lookup commands. This satisfies the stem's requirement for a valid lookup-creation method without needing CLI access or search syntax.
Use the outputlookup command in a search
The outputlookup command writes search results directly to a CSV lookup file on the search head, creating or overwriting the table. This satisfies the stem's requirement for a valid lookup-creation method entirely within SPL, without any Web interface upload step.
Use the inputlookup command in a search
A team uses a lookup table to map employee IDs to department names. The lookup is defined in transforms.conf with max_matches=1. Some events have multiple employee IDs in the emp_id field (comma-separated). The analyst wants to see the department for each ID. Which approach should be used?
Use | makemv delim="," emp_id | lookup employee_lookup emp_id OUTPUT department
Use | eval department=match(emp_id, "(?i)" . lookup_table)
Use | eval emp_ids=split(emp_id, ",") | mvexpand emp_ids | lookup employee_lookup emp_id OUTPUT department
Correctly splits and expands each ID, then looks up department.
Use | inputlookup employee_lookup where emp_id IN (emp_id_field)
A Splunk admin is tasked with creating a dashboard that shows the average response time per server over the last hour, updated every 60 seconds. The data comes from a sourcetype 'app_log' with fields: server, response_time. The admin wants to use a single search with a timechart and set the dashboard's time range picker to 'Last 60 minutes'. However, the chart shows only one data point (the average for the entire hour) instead of per-minute intervals. What is the most likely cause and solution?
The dashboard uses a summary index; switch to a base search
The search is not set to real-time; change to a real-time search
The dashboard time range picker is set to 'All time'; change to 'Last 60 minutes'
The timechart command does not have a span specified; add | timechart span=1m avg(response_time) by server
Specifying span=1m creates per-minute buckets.
Want more Advanced Visualization and Lookups practice?
Practice this domain25% of exam · 6 sample questions below
A security analyst needs to correlate login events from multiple authentication servers to track a single user session. The events share a common 'session_id' field but have different timestamps. Which transaction command option should be used to ensure the session is considered complete after 30 minutes of inactivity?
startswith=login endswith=logout
mvlist=session_id
maxspan=30m
maxpause=1800
maxpause=1800 groups events sharing session_id into one transaction, closing it after 30 minutes of inactivity. This matches the requirement to treat a session as complete after 30 minutes without events, correlating login activity across authentication servers.
A Splunk user wants to group web server logs into transactions representing a single user visit, where a visit starts with a 'GET' request and ends with a 'POST' request. Which transaction command syntax correctly implements this logic?
transaction startswith="GET" endswith="POST" maxevents=2
transaction startswith="POST" endswith="GET"
transaction startswith="GET" endswith="POST"
The transaction command's startswith and endswith arguments define the boundary events that delimit each transaction group. Specifying startswith="GET" and endswith="POST" groups each user visit from its opening GET request through to its closing POST request.
transaction by src_ip startswith="GET" endswith="POST"
Refer to the exhibit. A security analyst runs this search to group SSH login events into sessions based on a session_id that is extracted only from 'Accepted publickey' events. However, the resulting transactions contain only the 'Accepted publickey' event and none of the subsequent commands or logouts. What is the most likely cause?
The maxpause=5m is too short, causing the transaction to close before other events occur.
The session_id field is only populated for the 'Accepted publickey' event, so other events have a different or null session_id and do not join the transaction.
The transaction command groups events sharing an identical session_id value. Because that field is extracted only from 'Accepted publickey' events, subsequent commands and logouts carry a different or null value, so they cannot join the transaction, leaving only the initial event.
The transaction command requires that all events have a non-null session_id to be grouped.
The sourcetype filter is too restrictive.
An analyst needs to correlate events from a web server log and an application log to identify failed login attempts followed within 5 seconds by an error event. The events share a common session ID field. Which approach should the analyst use?
Use `transaction sessionID maxspan=5s` to group events by session ID within 5 seconds
`transaction` groups raw events sharing the sessionID field into a single correlated result, and `maxspan=5s` bounds the group so only events within five seconds are joined. This directly satisfies the stem's requirement to link failed logins to subsequent error events by common session ID within that window.
Use `append` to combine the two sourcetypes and then `search` for the pattern
Use `eventstats` to compute counts by sessionID and then filter
Use `stats` with values() and a by clause on sessionID
A Splunk administrator notices that a transaction command is consuming excessive memory and taking too long to complete. The transaction is defined on a field with high cardinality. Which of the following would most effectively reduce memory usage and improve performance?
Increase the maxspan value
Remove the maxspan constraint
Set keepevicted=false
Use a different field with lower cardinality for grouping
Grouping on a lower-cardinality field reduces the number of distinct transaction groups Splunk must track in memory, directly cutting the memory footprint and search duration that high cardinality inflates. This satisfies the stated performance constraint without altering the correlation logic.
An organization has a transaction that groups firewall events by source IP to detect port scans. The transaction uses `maxpause=1m`. Some valid scans are being missed because events occasionally have gaps longer than 1 minute due to network latency. Which change would best capture these scans without introducing too many false positives?
Decrease maxspan to 30 seconds
Remove maxpause and use only maxspan
Group by destination IP instead of source IP
Increase maxpause to 2 minutes
Raising maxpause to 2 minutes lets the transaction tolerate the latency-induced gaps that currently split scans into separate transactions, so valid port scans are grouped again. A modest increase limits false positives from unrelated events being merged.
Want more Transactions and Event Correlation practice?
Practice this domainThe SPLK-1002 exam has 65 questions and must be completed in 60 minutes. Always confirm current details on the vendor's official exam page.
Scenario-based questions covering exam objectives with detailed answer explanations.
The exam covers 4 domains: Advanced Searching and Statistics, Macros, Saved Searches and CIM, Advanced Visualization and Lookups, Transactions and Event Correlation. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official Splunk SPLK-1002 exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.