The macro weekly_sales(2) contains the search string:
index=games | eval ProductSales = $Price$ * $AmountSold$
Which of the following will return results?
The macro weekly_sales(2) contains the search string:
index=games | eval ProductSales = $Price$ * $AmountSold$
Which of the following will return results?
The macro weekly_sales expects two parameters, as indicated by the (2) in the macro definition. The correct format for passing parameters to a macro involves simply providing the values without enclosing them in special characters like dollar signs. Therefore, using 'weekly_sales(3.99, 10)' will correctly replace $Price$ with 3.99 and $AmountSold$ with 10 in the search string. Option A correctly follows this format.
A and C are identical because one of them doesn’t show the backtick. Pick one with backtick instead of the single apostrophe
Option A and C are identical? :O