services.filebeat.settings
Configuration for filebeat. See https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html for supported values.
Options containing secret data should be set to an attribute
set containing the attribute _secret - a
string pointing to a file containing the value the option
should be set to. See the example to get a better picture of
this: in the resulting
filebeat.yml file, the
output.elasticsearch.password
key will be set to the contents of the
/var/keys/elasticsearch_password file.
- Type
open submodule of (JSON value)- Default
{ }- Example
{ settings = { output.elasticsearch = { hosts = [ "myEShost:9200" ]; username = "filebeat_internal"; password = { _secret = "/var/keys/elasticsearch_password"; }; }; logging.level = "info"; }; };- Declared
- <nixpkgs/nixos/modules/services/logging/filebeat.nix>