Be able to pick the right transforming command for a reporting or correlation need and shape output correctly. The most important thing: know when join is appropriate versus lookup or stats, and respect its subsearch limits.
Start practicing
Transforming Commands And Formatting — choose a session length
Free · No account required
Domain overview
This domain covers Splunk's transforming commands and result formatting: stats, chart, timechart, top, rare, eventstats, streamstats, and join, plus output formatting with table, fields, and rename. Questions test when to use each command, how grouping and correlation work, and how results are shaped for reporting.
Exam objectives
Choosing stats, eventstats, or streamstats for aggregating and enriching events
Using join to correlate two searches on a common field, and its subsearch limits
Applying where for case-insensitive filtering with lower() or upper()
Formatting results with table, fields, rename, and chart/timechart grouping
Assuming join scales like lookup; join runs a subsearch with result and time limits, so large correlations fail or truncate
Using eventstats when streamstats is needed, or vice versa, confusing global aggregation with running per-event calculation
Forgetting that where is case-sensitive by default, so failed vs Failed comparisons silently miss events
Click any question to see the full explanation and answer options, or start a focused practice session above.
How do you calculate the percentage of total events for each status code?
2When using 'chart', what is the behavior if you do not specify a 'by' clause?
3Which command is used to remove a field from the search results?
4You are correlating two searches. What is the primary advantage of using 'join' over 'lookup'?
5You need to count the total number of unique users per department using the 'stats' command. Which command syntax is correct?
6What is the purpose of 'streamstats' compared to 'stats'?
7You want to see a list of unique 'clientip' addresses. Which command is most efficient?
8What is the limitation of using 'join' in a search?
9How do you add a total row to a stats table?
10You want to round a number in a field to two decimal places. Which function is used?
11What is the difference between 'chart' and 'timechart'?
12Which command is used to display specific fields in the output?
13How do you extract a portion of a string using 'eval'?
14When using 'stats', how does the 'values()' function differ from 'list()'?
15Which command sorts results by a field in descending order?
16You need to combine two fields into one string. Which eval function is used?
17How do you handle case-insensitive filtering in a 'where' clause?
18What is the result of 'transaction' command compared to 'stats'?
19Which TWO of the following commands are considered 'transforming' commands?
20Which THREE of the following are valid aggregation functions used with 'stats'?
21Which TWO actions can be performed by the 'eval' command?
22Which TWO of the following are true about 'eventstats'?
23Which TWO are common causes for a 'transaction' command taking too long?
24Which TWO are true about the 'eval' command?
25Which THREE of the following functions are used with 'stats' to aggregate data?
26A security analyst needs to correlate failed login events with subsequent successful logins from the same source IP within a 10-minute window. The raw events contain src_ip and action fields but no session identifier. Which Splunk transforming command should the analyst use to group these events into sessions based on time proximity?
27A security analyst needs to enrich raw firewall logs by attaching the matching department name from a lookup table. The lookup table contains department IDs, and the firewall logs contain a field called dept_id. The analyst wants to add the department name to each event without discarding events that have no matching department ID. Which command should be used?
28A Splunk administrator is building a dashboard panel that must show the total number of events per sourcetype and also include a column showing what percentage each sourcetype contributes to the overall event count. The search already uses stats count by sourcetype. Which approach will add the percentage column correctly in a single search?
29A Splunk power user needs to calculate the total number of events per sourcetype and include a column that shows the percentage of total events each sourcetype represents. The search should return a table with sourcetype, count, and percentage. Which sequence of commands achieves this?
30An analyst is reviewing web server logs and needs to display the top 5 URL paths by total bytes transferred. The field 'bytes' is numeric, and 'uri_path' is a string. Which search produces the correct result with the least performance impact?
31A Splunk user has a search that returns events with a field named status_code containing values like 200, 404, and 500. The user wants to create a new field named status_category that contains the text Success for 200, Client Error for 4xx codes, and Server Error for 5xx codes, without removing the original status_code field. Which eval expression accomplishes this?
32A security analyst needs to correlate failed login attempts with subsequent successful logins for the same user within 10 minutes. The relevant events are in the 'auth' index with fields 'user', 'action' (failed or success), and '_time'. Which command should be used to achieve this correlation?
33A Splunk analyst is reviewing authentication logs and wants to reduce noise by showing only the first and last event for each user session, where a session is defined by a user field and a 30-minute inactivity timeout. The analyst also wants to include the total duration of each session. Which command should be used?
34A power user needs to calculate the difference between the current value of a field 'cpu_load' and its value from the previous event, grouped by 'host'. The events are sorted by time. Which command accomplishes this?
35A security analyst wants to display a table of failed login attempts where the source IP field is shown as a clickable link that opens an external threat intelligence lookup page. The URL should embed the src_ip value, for example https://threatintel.example.com/lookup?ip=192.0.2.1. Which Splunk command and syntax should the analyst use to replace the src_ip field with the hyperlink while keeping the original field name in the results?
36A Splunk power user is building a search that needs to calculate the difference in seconds between two epoch time fields, start_time and end_time, and then format the result as a human-readable duration like '1h 23m 45s'. The fields are numeric epoch values. Which eval expression accomplishes this?
37A power user wants to create a report that shows the average duration of each transaction, grouped by the 'service' field. The transactions are already grouped by a unique 'transaction_id' using the transaction command. Which command should be used next to calculate the average duration per service?
38A Splunk power user is creating a report that requires calculating the running total of sales amounts over time, and also needs to include the overall average sales amount for each region on every row. Which two commands can be used together to achieve this? (Choose two.)
39A Splunk user needs to add a field that indicates whether a response time is above or below a threshold of 500 milliseconds. The events contain a field named response_time. Which eval function should they use to create a new field called performance_category with values 'slow' or 'fast'?
40A Splunk user needs to format the 'duration' field, which is in seconds, into a string in the format 'HH:MM:SS'. Which eval function should be used?
Be able to pick the right transforming command for a reporting or correlation need and shape output correctly. The most important thing: know when join is appropriate versus lookup or stats, and respect its subsearch limits.
The Courseiva SPLK-1004 question bank contains 40 questions in the Transforming Commands And Formatting domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Transforming Commands And Formatting domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included