alibaba / ilogtail

Fast and Lightweight Observability Data Collector
https://ilogtail.gitbook.io/ilogtail-docs
Apache License 2.0
1.71k stars 384 forks source link

[ENHANCEMENT]: flusher 报错不明显 #1273

Open ltx0633 opened 9 months ago

ltx0633 commented 9 months ago

Concisely describe the proposed feature

flusher_elasticsearch 报错不明显

Describe the solution you'd like (if any)

增加清晰的日志输出

Additional comments 当域名不存在的时候,日志中没有明显的错误

    flushers:
      - Type: flusher_stdout
        OnlyStdout: true
      - Type: flusher_elasticsearch
        Addresses:
          - "https://test-es.xxx.com"
        Index: log_%{+yyyyMMdd}
        Authentication:
          PlainText:
            Username: elastic
            Password: xxxxx
liangry commented 9 months ago

记得以前有个文件叫:logtail_plugin.LOG,现在怎么没了?

liangry commented 9 months ago

记得以前有个文件叫:logtail_plugin.LOG,现在怎么没了?

搞错了,两个问题没有关系,这个文件也在

messixukejia commented 7 months ago

Concisely describe the proposed feature

flusher_elasticsearch 报错不明显

Describe the solution you'd like (if any)

增加清晰的日志输出

Additional comments 当域名不存在的时候,日志中没有明显的错误

    flushers:
      - Type: flusher_stdout
        OnlyStdout: true
      - Type: flusher_elasticsearch
        Addresses:
          - "https://test-es.xxx.com"
        Index: log_%{+yyyyMMdd}
        Authentication:
          PlainText:
            Username: elastic
            Password: xxxxx

如果有需要可以提交PR完善下。