vector: error when pass user name and password for elastic sinks
i try to add elastic sinks but i got and error: i try this way
sinks:
elasticsearch:
type: elasticsearch
inputs: [kubernetes_logs]
endpoint: https://elastic-cluster-es-coordinator.elastic-system.svc.cluster.local:9200
encoding:
timestamp_format: rfc3339
auth.user: "elastic"
auth.password: "password"
auth.strategy: basic
tls.verify_certificate: false
index: vector-%Y-%m-%d
metrics: null
mode: bulk
and try this
sinks:
elasticsearch:
type: elasticsearch
inputs: [kubernetes_logs]
endpoint: https://elastic-cluster-es-coordinator.elastic-system.svc.cluster.local:9200
encoding:
timestamp_format: rfc3339
auth
user: "elastic"
password: "password"
strategy: basic
tls:
verify_certificate: false
index: vector-%Y-%m-%d
metrics: null
mode: bulk
may be someone help with the right pass k8s logs to elastic !!!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Please confirm the version of Vector you are running
2022-03-21T16:51:56.501081Z INFO vector::app: Log level is enabled. level=“vector=info,codec=info,vrl=info,file_source=info,tower_limit=trace,rdkafka=info,buffers=info” 2022-03-21T16:51:56.507480Z INFO vector::app: Loading configs. paths=[“/etc/vector”] 2022-03-21T16:51:56.549689Z ERROR vector::cli: Configuration error. error=sinks.elasticsearch: unknown field auth.user, expected one of endpoint, doc_type, suppress_type_name, id_key, pipeline, mode, compression, encoding, batch, request, auth, query, aws, tls, bulk, data_stream, metrics at line 31 column 9