Splunk
SPLK-1002 · Question #140
What is the correct format for naming a macro with multiple arguments?
The correct answer is C. monthly_sales[3]. The correct format for naming a macro with multiple arguments is monthly_sales. The square brackets indicate that the macro has arguments, and the number indicates how many arguments it has. The arguments are separated by commas when calling the macro, such as…
Creating and Using Macros
Question
What is the correct format for naming a macro with multiple arguments?
Options
- Amonthly_sales(argument 1, argument 2, argument 3)
- Bmonthly_sales(3)
- Cmonthly_sales[3]
- Dmonthly_sales[argument 1, argument 2, argument 3)
How the community answered
(41 responses)- A2% (1)
- B7% (3)
- C88% (36)
- D2% (1)
Explanation
The correct format for naming a macro with multiple arguments is monthly_sales. The square brackets indicate that the macro has arguments, and the number indicates how many arguments it has. The arguments are separated by commas when calling the macro, such as monthly_sales[region,salesperson,date].
Topics
#Splunk macros#Macro arguments#SPL syntax
Community Discussion
No community discussion yet for this question.