Exam SPLK-1002 Topic 10 Question 149 Discussion
Actual exam question for Splunk's SPLK-1002 exam
Question #: 149
Topic #: 10
Question #: 149
Topic #: 10
Based on the macro definition shown below, what is the correct way to execute the macro in a search string?


Suggested Answer: B Vote an answer
Reference: https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Usesearchmacros The correct way to execute the macro in a search string is to use the format macro_name($arg1$, $arg2$,
...) where $arg1$, $arg2$, etc. are the arguments for the macro. In this case, the macro name is convert_sales and it takes three arguments: currency, symbol, and rate. The arguments are enclosed in dollar signs and separated by commas. Therefore, the correct way to execute the macro is convert_sales ($euro$, $€$, .79).
...) where $arg1$, $arg2$, etc. are the arguments for the macro. In this case, the macro name is convert_sales and it takes three arguments: currency, symbol, and rate. The arguments are enclosed in dollar signs and separated by commas. Therefore, the correct way to execute the macro is convert_sales ($euro$, $€$, .79).
by Leonard at Jul 12, 2026, 12:31 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).