Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logging configuration example to the Configure inputs page #489

Merged
merged 12 commits into from
Jun 11, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ By default {agent} collects system metrics, such as CPU, memory, network, and fi
data_stream.dataset: system.filesystem
-----------------------------------------------------------------------

<1> A generic type describing the data.
<1> The type of data to input. Refer to <<elastic-agent-input-types>> for the list of what's available.
kilfoyle marked this conversation as resolved.
Show resolved Hide resolved
<2> A unique ID for the input.
<3> A user-defined namespace.
<4> The name of the `output` to use. If not specified, `default` will be used.
Expand All @@ -64,10 +64,10 @@ To enable {agent} to collect log files, you can use a configuration like the fol
- /var/log/*.log
-----------------------------------------------------------------------

<1> A generic type describing the data.
<1> The type of data to input. Refer to <<elastic-agent-input-types>> for the list of what's available.
<2> A unique ID for the input.
<3> A unique ID for the data stream to track the state of the ingested files.
<4> The streams block is required only if multiple streams are used on the same input. Refer to the <<elastic-agent-simplified-input-configuration,simplified log ingestion>> example to ingest a set of log files specified as an array.
<4> The streams block is required only if multiple streams are used on the same input. Refer to the {filebeat} {filebeat-ref}/filebeat-input-filestream.html[filestream] documentation for a list of available options. Also, specifically for the `filestream` input type, refer to the <<elastic-agent-simplified-input-configuration,simplified log ingestion>> for an example of ingesting a set of logs specified as an array.

The input in this example harvests all files in the path `/var/log/*.log`, that is, all logs in the directory `/var/log/` that end with `.log`. All patterns supported by https://golang.org/pkg/path/filepath/#Glob[Go Glob] are also supported here.

Expand Down
Loading