filebeat/input/logv2/README.md
The LogV2 input is used as an entrypoint to select whether to run the Log or Container input as Filestream as part of the effort to fully deprecate and remove the Log input.
The logv2 manager implements the v2.Redirector interface. When a
redirect is active the Loader resolves the filestream plugin from its
own registry and calls its Create with the translated config. The
logv2 package does not import or instantiate filestream directly.
When no redirect is needed, Create returns v2.ErrUnknownInput and
compat.Combine falls through to the V1 log input as before.
Currently there are two ways to enable the redirect:
run_as_filestream: true is added to the input configuration. This
allows control of the migration at the input level.log_input_run_as_filestream is enabled (this is done by setting
features.log_input_run_as_filestream.enabled: true). This forces
all Log inputs on Filebeat to run as Filestream.Both the Log and Container input types are supported.
Regardless of how the migration is enabled, to run the Log input as Filestream all conditions listed below need to be met: