nerdexam
Splunk

SPLK-1002 · Question #290

A search contains example(100,200). What is the name of the macro?

The correct answer is B. example(var1,var2). In Splunk, macros that accept arguments are defined with placeholders for those arguments in the format example(var1, var2). In the search example(100,200), "100" and "200" are the values passed for var1 and var2 respectively.

Creating and Using Macros

Question

A search contains example(100,200). What is the name of the macro?

Options

  • Aexample(2)
  • Bexample(var1,var2)
  • Cexample($,$)
  • Dexample[2]

How the community answered

(23 responses)
  • B
    87% (20)
  • C
    9% (2)
  • D
    4% (1)

Explanation

In Splunk, macros that accept arguments are defined with placeholders for those arguments in the format example(var1, var2). In the search example(100,200), "100" and "200" are the values passed for var1 and var2 respectively.

Topics

#Splunk Macros#Macro Definition#Macro Arguments#SPL Syntax

Community Discussion

No community discussion yet for this question.

Full SPLK-1002 Practice