Splunk Core Certified Power User — Question 20
A user wants to convert numeric field values to strings and also to sort on those values.
Which command should be used first, the eval or the sort?
Answer options
- A. It doesn't matter whether eval or sort is used first.
- B. Convert the numeric to a string with eval first, then sort.
- C. Use sort first, then convert the numeric to a string with eval.
- D. You cannot use the sort command and the eval command on the same field.
Correct answer: C
Explanation
The correct answer is C because sorting must be performed before converting the numeric values to strings; otherwise, the sort operation may not work as intended. Options A and D provide incorrect information about the functionality of the commands, while B suggests the wrong sequence of operations.