loggie-io / loggie

A lightweight, cloud-native data transfer agent and aggregator
https://loggie-io.github.io/docs-en/
Apache License 2.0
1.26k stars 167 forks source link

Sink does not support Elasticsearch for https #542

Closed PungYoung closed 1 year ago

PungYoung commented 1 year ago
cat << EOF | kubectl apply -f -
apiVersion: loggie.io/v1beta1
kind: Sink
metadata:
  name: default
spec:
  sink: |
    type: elasticsearch
    index: "loggie"
    hosts: ["https://elasticsearch-master.default.svc:9200"]
    schema: "https"
    username: "elastic"
    password: "123456"
    sniff: false
EOF
kubectl logs -f  -n loggie loggie-gj9zk
2023-05-27 23:09:03 ERR pkg/sink/elasticsearch/elasticsearch.go:87 > start elasticsearch connection fail, err: health check timeout: Head "https://elasticsearch-master.default.svc:9200": x509: certificate signed by unknown authority: no Elasticsearch node available
2023-05-27 23:09:03 ERR pkg/control/controller.go:93 > retry starting pipeline error: start component sink/elasticsearch: health check timeout: Head "https://elasticsearch-master.default.svc:9200": x509: certificate signed by unknown authority: no Elasticsearch node available

kibana is OK

ethfoo commented 1 year ago

it will support by this PR: https://github.com/loggie-io/loggie/pull/469

ethfoo commented 1 year ago

example: https://github.com/loggie-io/loggie/blob/main/pkg/sink/elasticsearch/pipeline.yml#L6

290480358 commented 11 months ago

能否支持insecure配置