QuestionQ28Verified/Creating and Using MacrosCopy linkReport a problemAsk AstroTutorSave questionWhen using a nested search macro, how can an argument value be supplied to the inner macro?AThe argument value may be passed to the outer macro.BAn argument cannot be used with an inner nested macro.CAn argument cannot be used with an outer nested macro.DThe argument value must be specified in the outer macro.Show AnswerAnswerExplanationA nested Splunk search macro can receive an argument through the outer macro. The outer macro accepts the value and uses its argument substitution in the definition that invokes the inner macro. Search macro definitions support argument tokens and can invoke other macros.Learn moremacros.conf - Splunk DocumentationDefine search macros in Settings - Splunk DocumentationShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion