QuestionQ21

VerifiedCreating and Using Macros

Which of the following searches illustrate a valid use of a macro?

Choose two
Explanation

Splunk macros must be enclosed in backticks, with any arguments inside the macro call. A command-style macro can be inserted as a piped search fragment, and an eval-expression macro can be used as the expression assigned by eval. Macros within quoted values are not expanded, and if is not a standalone statistical function accepted by stats.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!