SPLK-1002 · Question #143
Which of the following eval command functions is valid?
The correct answer is D. tostring(). tostring() is a valid Splunk eval function that converts a numeric or boolean value to a string representation, optionally accepting a format argument (e.g., hex, commas, duration). int() is not a valid eval function in Splunk (use floor() or tonumber() for numeric conversion)…
Question
Which of the following eval command functions is valid?
Options
- Aint()
- Bcount()
- Cprint()
- Dtostring()
How the community answered
(31 responses)- A6% (2)
- B3% (1)
- D90% (28)
Explanation
tostring() is a valid Splunk eval function that converts a numeric or boolean value to a string representation, optionally accepting a format argument (e.g., hex, commas, duration). int() is not a valid eval function in Splunk (use floor() or tonumber() for numeric conversion). count() is a statistical function used with stats, not eval. print() does not exist in Splunk's SPL.
Topics
Community Discussion
No community discussion yet for this question.