SPLK-1001 practice question 20 of 30
Which of the following is the appropriately formatted SPL search?
Full set: 244 questionsDomain Search Language Fundamentals
Option A follows proper SPL syntax: search terms (index=security sourcetype=linux secure (invalid OR failed)) are separated from the transforming command with “|”. The stats command is spelled correctly and uses the aggregate function count with the optional AS clause to rename the result field (“Potential Issues”). This construction exactly matches Splunk’s documented examples for counting events and renaming the output field.
B. Omits an aggregate function; “stats as” without count, sum, etc. is syntactically invalid.
C. Uses em-dash instead of “=” and misorders keywords (“count stats”), violating SPL grammar.
D. Uses em-dash, and “count” alone is not a Splunk command; must be used within stats.
1. Splunk® Search Reference 9.0, “stats” command – Syntax and example: “...| stats count AS total” (Section: stats, para 2).
2. Splunk® Enterprise Search Manual 9.0, “About basic searches” – requirement for ‘|’ to introduce transforming commands (Ch. 3, p. 49).
3. Splunk Fundamentals 1 Courseware, Module 7 “Transforming Data with stats” – slide 5: “stats count AS ”.
Keep practicing
Take the free SPLK-1001 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SPLK-1001 practice questions
- Question 1Which command is used to review the contents of a specified static lookup file?
- Question 2What are the three main Splunk components?
- Question 3By default, which of the following fields would be listed in the fields sidebar under int…
- Question 4Splunk extracts fields from event data at index time and at search time.
- Question 5You can view the search result in following format (Choose three.):
- Question 6This search will return 20 results. SEARCH: error | top host limit = 20
