nerdexam
Splunk

SPLK-1002 · Question #219

Which of the following Statements about macros is true? (select all that apply)

The correct answer is B. Arguments are defined when the macro is created. C. Argument values are used to resolve the search string at execution time. A macro is a way to save a commonly used search string as a variable that you can reuse in other searches. When you create a macro, you can define arguments that are placeholders for values that you specify at execution time. The argument values are used to resolve the search…

Creating and Using Macros

Question

Which of the following Statements about macros is true? (select all that apply)

Options

  • AArguments are defined at execution time.
  • BArguments are defined when the macro is created.
  • CArgument values are used to resolve the search string at execution time.
  • DArgument values are used to resolve the search string when the macro is created.

How the community answered

(36 responses)
  • A
    3% (1)
  • B
    94% (34)
  • D
    3% (1)

Explanation

A macro is a way to save a commonly used search string as a variable that you can reuse in other searches. When you create a macro, you can define arguments that are placeholders for values that you specify at execution time. The argument values are used to resolve the search string when the macro is invoked, not when it is created.

Topics

#Macros#Macro arguments#Search expansion

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice