Is there any way to start a macro with a generator command? I get the error "The command must be the first command of a search."
Vincent,
You can have macros that make use of generating commands, but the error is likely correct in that certain search commands (i.e. metadata) must be the first command of a search.
## macros.conf
[metadata]
definition = metadata type=hosts index=*
iseval = 0
## search
| `metadata`
Vincent,
You can have macros that make use of generating commands, but the error is likely correct in that certain search commands (i.e. metadata) must be the first command of a search.
## macros.conf
[metadata]
definition = metadata type=hosts index=*
iseval = 0
## search
| `metadata`
It is lame. Can you do it if you make it into an iseval=1
definition returning a string?
We figured that out, but it's kinda lame. It'd be nice to have the pipe in the definition.