forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure beats config options (elastic#4716) (elastic#4759)
* Restructure Filebeat and Libbeat config options * Restructure Heartbeat config options * Restructure Packetbeat config options * Experiment: show packetbeat.reference.yml in the docs * Restructure Winlogbeat config options * Restructure Metricbeat config options * Restructure Auditbeat config options * Add reference configs to the docs * Move include statement for general options for consistency
- Loading branch information
1 parent
e44948d
commit fd6939a
Showing
263 changed files
with
2,239 additions
and
1,974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[configuration-general-options]] | ||
== Specify general settings | ||
|
||
You can specify settings in the +{beatname_lc}.yml+ config file to control the | ||
general behavior of {beatname_uc}. | ||
|
||
include::../../libbeat/docs/generalconfig.asciidoc[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
[[configuration-general-options]] | ||
== Specify general settings | ||
|
||
You can specify settings in the +{beatname_lc}.yml+ config file to control the | ||
general behavior of {beatname_uc}. This includes: | ||
|
||
* <<configuration-global-options,Global options>> that control things like | ||
publisher behavior and the location of some files. | ||
|
||
* <<configuration-general,General options>> that are supported by all Elastic | ||
Beats. | ||
|
||
[float] | ||
[[configuration-global-options]] | ||
=== Global Filebeat configuration options | ||
|
||
These options are in the `filebeat` namespace. | ||
|
||
[float] | ||
==== `spool_size` | ||
|
||
The event count spool threshold. This setting forces a network flush if the number of events in the spooler exceeds | ||
the specified value. | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------------- | ||
filebeat.spool_size: 2048 | ||
------------------------------------------------------------------------------------- | ||
|
||
See <<load-balancing>> for more information about how this setting affects load balancing. | ||
|
||
[float] | ||
==== `publish_async` | ||
|
||
experimental[] | ||
deprecated[5.3.0] | ||
|
||
If enabled, the publisher pipeline in Filebeat operates in async mode preparing | ||
a new batch of lines while waiting for ACK. This option can improve load-balancing | ||
throughput at the cost of increased memory usage. The default value is false. | ||
|
||
See <<load-balancing>> for more information about how this setting affects load balancing. | ||
|
||
[float] | ||
==== `idle_timeout` | ||
|
||
A duration string that specifies how often the spooler is flushed. After the | ||
`idle_timeout` is reached, the spooler is flushed even if the `spool_size` has not been reached. | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------------- | ||
filebeat.idle_timeout: 5s | ||
------------------------------------------------------------------------------------- | ||
|
||
|
||
[float] | ||
==== `registry_file` | ||
|
||
The name of the registry file. If a relative path is used, it is considered relative to the | ||
data path. See the <<directory-layout>> section for details. The default is `${path.data}/registry`. | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------------- | ||
filebeat.registry_file: registry | ||
------------------------------------------------------------------------------------- | ||
|
||
It is not possible to use a symlink as registry file. | ||
|
||
NOTE: The registry file is only updated when new events are flushed and not on a predefined period. | ||
That means in case there are some states where the TTL expired, these are only removed when new event are processed. | ||
|
||
|
||
[float] | ||
==== `config_dir` | ||
|
||
The full path to the directory that contains additional prospector configuration files. | ||
Each configuration file must end with `.yml`. Each config file must also specify the full Filebeat | ||
config hierarchy even though only the prospector part of the file is processed. All global | ||
options, such as `spool_size`, are ignored. | ||
|
||
The `config_dir` option MUST point to a directory other than the directory where the main Filebeat config file resides. | ||
|
||
If the specified path is not absolute, it is considered relative to the configuration path. See the | ||
<<directory-layout>> section for details. | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------------- | ||
filebeat.config_dir: path/to/configs | ||
------------------------------------------------------------------------------------- | ||
|
||
[float] | ||
[[shutdown-timeout]] | ||
==== `shutdown_timeout` | ||
|
||
How long Filebeat waits on shutdown for the publisher to finish sending events | ||
before Filebeat shuts down. | ||
|
||
By default, this option is disabled, and Filebeat does not wait for the | ||
publisher to finish sending events before shutting down. This means that any | ||
events sent to the output, but not acknowledged before Filebeat shuts down, | ||
are sent again when you restart Filebeat. For more details about how this | ||
works, see <<at-least-once-delivery>>. | ||
|
||
You can configure the `shutdown_timeout` option to specify the maximum amount | ||
of time that Filebeat waits for the publisher to finish sending events before | ||
shutting down. If all events are acknowledged before `shutdown_timeout` is | ||
reached, Filebeat will shut down. | ||
|
||
There is no recommended setting for this option because determining the correct | ||
value for `shutdown_timeout` depends heavily on the environment in which | ||
Filebeat is running and the current state of the output. | ||
|
||
Example configuration: | ||
|
||
[source,yaml] | ||
------------------------------------------------------------------------------------- | ||
filebeat.shutdown_timeout: 5s | ||
------------------------------------------------------------------------------------- | ||
|
||
include::../../libbeat/docs/generalconfig.asciidoc[] | ||
|
Oops, something went wrong.