SPLK-1002 · Question #20
Which of the following statements describes macros?
The correct answer is C. A macro Is a reusable search string that may have a flexible time range. A Splunk macro is a reusable search string (or snippet) that can be referenced in any search. The time range is flexible - macros do not have a fixed time range, and the time range is determined by the search that invokes the macro (B is false). A macro does not need to contain…
Question
Which of the following statements describes macros?
Options
- AA macro is a reusable search string that must contain the full search.
- BA macro is a reusable search string that must have a fixed time range.
- CA macro Is a reusable search string that may have a flexible time range.
- DA macro Is a reusable search string that must contain only a portion of the search.
How the community answered
(41 responses)- A2% (1)
- B5% (2)
- C93% (38)
Explanation
A Splunk macro is a reusable search string (or snippet) that can be referenced in any search. The time range is flexible - macros do not have a fixed time range, and the time range is determined by the search that invokes the macro (B is false). A macro does not need to contain a full search - it can contain just a portion (A is false, D is partially true but incorrectly worded as 'must'). Macros can also accept arguments, making them dynamic and reusable across many different searches without modification.
Topics
Community Discussion
No community discussion yet for this question.