SPLK-1001 · Question #196
Which of the following is a best practice when writing a search string?
The correct answer is C. Include the search terms at the beginning of the search string. A best practice when writing a search string is to include the search terms at the beginning of the search string. This helps Splunk narrow down the events that match your search criteria and improve the search performance. Formatting commands and functions can be added later…
Question
Which of the following is a best practice when writing a search string?
Options
- AInclude all formatting commands before any search terms
- BInclude at least one function as this is a search requirement
- CInclude the search terms at the beginning of the search string
- DAvoid using formatting clauses as they add too much overhead
How the community answered
(36 responses)- A17% (6)
- B6% (2)
- C72% (26)
- D6% (2)
Explanation
A best practice when writing a search string is to include the search terms at the beginning of the search string. This helps Splunk narrow down the events that match your search criteria and improve the search performance. Formatting commands and functions can be added later in the search pipeline to manipulate and display the results.
Topics
Community Discussion
No community discussion yet for this question.