SPLK-1004 Exam QuestionsBrowse all questions from this exam

SPLK-1004 Exam - Question 13


When using a nested search macro, how can an argument value be passed to the inner macro?

Show Answer
Correct Answer: D

When using a nested search macro, the argument value must be specified in the outer macro. This is essential because the outer macro is responsible for passing the argument to the inner macro during execution.

Discussion

2 comments
Sign in to comment
DeragOption: D
Apr 20, 2024

Correct answer is D. option A, it is not the correct answer to the question about passing an argument value to an inner macro. Option A suggests that the argument value may be passed to the outer macro, but the question asks about passing the argument value to the inner macro.

emlchOption: D
May 10, 2024

D is correct. For example macro(1) -> `macro` => index=web sourcetype=access_combine `macro2($field$)` macro2(1) -> `macro2` | stats count by $field$ see that the first macro (outer macro) is receiving the $field$ argument and passing to the second macro (inner macro)