Type to search.

Command line arguments

Serverless

Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Serverless interfaces and procedures might differ from classic Elastic Stack deployments.

Stack

The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Config 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:

YAML
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:

Shell
-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:

YAML
output.elasticsearch:
  enabled: false
  hosts: ["http://localhost:9200"]
  username: username
  password: password

output.console:
  pretty: true