Exec
The exec input plugin, allows to execute external program and collects event logs.
Container support
This plugin will not function in the distroless production images (AMD64 currently) as it needs a functional /bin/sh
which is not present. The debug images use the same binaries so even though they have a shell, there is no support for this plugin as it is compiled out.
Configuration Parameters
The plugin supports the following configuration parameters:
Command
The command to execute.
Parser
Specify the name of a parser to interpret the entry as a structured message.
Interval_Sec
Polling interval (seconds).
Interval_NSec
Polling interval (nanosecond).
Buf_Size
Oneshot
Only run once at startup. This allows collection of data precedent to fluent-bit's startup (bool, default: false)
Getting Started
You can run the plugin from the command line or through the configuration file:
Command Line
The following example will read events from the output of ls.
Configuration File
In your main configuration file append the following Input & Output sections:
Last updated