Based on the macro definition shown below, what is the correct way to execute the macro in a search string?

Based on the macro definition shown below, what is the correct way to execute the macro in a search string?

A . "convert_sales(euro,,.79)"
B . ‘convert_sales(euro,,.79)’
C . "convert_sales($euro$,$$,$.79$)"
D . ‘convert_sales($euro$,$$,$.79$)’

Answer: D

Explanation:

Reference: https://docs.splunk.com/Documentation/Splunk/8.0.3/Knowledge/Usesearchmacros

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
manikantta.duggishetti
manikantta.duggishetti
2 years ago

B is the correct answer