WARNING: Version 6.1 of Beats has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Command line arguments
editCommand line arguments
editConfig files to load are set using the -c
flag on command line. If no flag is
given, a beat and OS-specific default file path will be assumed.
You can specify multiple configuration files by repeating the -c
flag. You can
use this, for example, for setting defaults in a base configuration file, and
overwrite settings via local configuration files.
In addition to overwriting settings using multiple configuration files,
individual settings can be overwritten using -E <setting>=<value>
. The
<value>
can be either a single value or a complex object, such as a list or
dictionary.
For example, given the following configuration:
output.elasticsearch: hosts: ["http://localhost:9200"] username: username password: password
You can disable the Elasticsearch output and write all events to the console by setting:
-E output='{elasticsearch.enabled: false, console.pretty: true}'
Any complex objects that you specify at the command line are merged with the original configuration, and the following configuration is passed to the Beat:
output.elasticsearch: enabled: false hosts: ["http://localhost:9200"] username: username password: password output.console: pretty: true