key: value
- item
output.elasticsearch.index: …
output: elasticsearch: index: 'beat-%{[beat.version]}-%{+yyyy.MM.dd}'
filebeat.inputs.0.type: log
filebeat: inputs: - type: log
${VAR}
: definición${VAR:default_value}
: definición con valor por defecto${VAR:?error_text}
: se añade error_text al mensaje de error si no se puede acceder a ${VAR}ES_HOSTS="10.45.3.2:9220,10.45.3.1:9230" se convierte en lista: output.elasticseach: hosts: '${ES_HOSTS}'
-E es-host=another-host
:#establece localhost por defecto si no se le pasa variable es.host: '${ES_HOST:localhost}' output.elasticsearch: hosts: ['http://${es.host}:9200']
namespace1: subnamespace: host: localhost sleep: 1s namespace2: subnamespace: host: localhost sleep: 1s
por
namespace1: ${shared} namespace2: ${shared} shared: subnamespace: host: localhost sleep: 1s
beatname test config -c beatname.yml