A macro with arguments is defined with its argument count in the name: `my_macro(2)`. The arguments are referenced inside the macro definition using `$arg1$` and `$arg2$`.
This allows you to create reusable SPL templates that accept dynamic values at runtime.
Name: get_errors(1)
Definition: index=$index_name$ level=ERROR | stats count by source`get_errors("web_logs")`