Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Splunk Exam SPLK-1002 Topic 6 Question 70 Discussion

Actual exam question for Splunk's SPLK-1002 exam
Question #: 70
Topic #: 6
[All SPLK-1002 Questions]

The macro weekly sales (2) contains the search string:

index=games | eval ProductSales = $Price$ * $AmountSold$

Which of the following will return results?

Show Suggested Answer Hide Answer
Suggested Answer: C

To use a search macro in a search string, you need to place a back tick character (`) before and after the macro name1. You also need to use the same number of arguments as defined in the macro2. The macro weekly sales (2) has two arguments: Price and AmountSold. Therefore, you need to provide two values for these arguments when you call the macro.

The option A is incorrect because it uses parentheses instead of back ticks around the macro name. The option B is incorrect because it uses underscores instead of spaces in the macro name. The option D is incorrect because it uses spaces instead of commas to separate the argument values.


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel