SPLK-1002 · Question #180
Which of the following statements best describes a macro?
The correct answer is C. A macro is a portion of a search that can be reused in multiple place. A Splunk macro is a reusable search snippet - a saved portion of SPL that can be referenced in multiple searches or dashboards. This promotes consistency and reduces duplication. Option A describes an event type, option B describes a field alias, and option D describes a saved…
Question
Which of the following statements best describes a macro?
Options
- AA macro is a method of categorizing events based on a search.
- BA macro is a way to associate an additional (new) name with an existing field name.
- CA macro is a portion of a search that can be reused in multiple place
- DA macro is a knowledge object that enables you to schedule searches for specific events.
How the community answered
(34 responses)- A3% (1)
- B3% (1)
- C85% (29)
- D9% (3)
Explanation
A Splunk macro is a reusable search snippet - a saved portion of SPL that can be referenced in multiple searches or dashboards. This promotes consistency and reduces duplication. Option A describes an event type, option B describes a field alias, and option D describes a saved search or alert. Macros are specifically about reusable SPL fragments, optionally parameterized with arguments.
Topics
Community Discussion
No community discussion yet for this question.