SPLK-1004 · domain
Transforming Commands And Formatting
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.
Focused practice
Practice Transforming Commands And Formatting questions
Scored sessions drawing only from this domain — pick a length below.
Start 20-question practice test →What this domain covers
What to know about Transforming Commands And Formatting
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.
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
Watch out for
Common Transforming Commands And Formatting exam traps
- ▸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
Question index
All Transforming Commands And Formatting questions (40)
Click any question to see the full explanation, or start a practice session above.
Which command is used to display specific fields in the output?
Easy2A 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?
Medium3Which TWO are true about the 'eval' command?
Medium4A 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?
Medium5Which TWO of the following are true about 'eventstats'?
Medium6A 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?
Medium7An 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?
Medium8A 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?
Hard9A 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'?
Easy10A 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?
Medium11You need to combine two fields into one string. Which eval function is used?
Medium12Which TWO are common causes for a 'transaction' command taking too long?
Medium13You want to round a number in a field to two decimal places. Which function is used?
Medium14How do you extract a portion of a string using 'eval'?
Medium15A 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?
Medium16A 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?
Hard17A 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.)
Medium18A 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?
Medium19When using 'stats', how does the 'values()' function differ from 'list()'?
Hard20A 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?
Medium21Which command sorts results by a field in descending order?
Easy22A 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?
Medium23You are correlating two searches. What is the primary advantage of using 'join' over 'lookup'?
Hard24A 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?
Hard25What is the result of 'transaction' command compared to 'stats'?
Medium26A 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?
Hard27Which command is used to remove a field from the search results?
Easy28How do you handle case-insensitive filtering in a 'where' clause?
Hard29Which THREE of the following functions are used with 'stats' to aggregate data?
Hard30What is the limitation of using 'join' in a search?
Hard31How do you add a total row to a stats table?
Easy32Which THREE of the following are valid aggregation functions used with 'stats'?
Hard33How do you calculate the percentage of total events for each status code?
Easy34What is the purpose of 'streamstats' compared to 'stats'?
Hard35You want to see a list of unique 'clientip' addresses. Which command is most efficient?
Easy36What is the difference between 'chart' and 'timechart'?
Hard37Which TWO of the following commands are considered 'transforming' commands?
Medium38Which TWO actions can be performed by the 'eval' command?
Medium39When using 'chart', what is the behavior if you do not specify a 'by' clause?
Hard40You need to count the total number of unique users per department using the 'stats' command. Which command syntax is correct?
EasyOther domains
All SPLK-1004 exam domains
Frequently asked questions
- What does the Transforming Commands And Formatting domain cover on the SPLK-1004 exam?
- 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.
- How many questions are in this domain?
- This page lists all 40 Transforming Commands And Formatting questions in the SPLK-1004 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
- What is the best way to practise this domain?
- Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
- Can I practise only Transforming Commands And Formatting questions?
- Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.