internetitem / logback-elasticsearch-appender

Logback Elasticsearch Appender
Other
233 stars 137 forks source link

密码带@符号时无法正常解析url #84

Open mjwyr opened 2 years ago

mjwyr commented 2 years ago

image 有解决方式吗,还是只能改密码

abatkin commented 2 years ago

That does appear to be the case, but due to the way that URLs are parsed (outside of this library). PRs are welcome (as would release testing help) - I suppose to allow the username and password to go into their own attributes.

XuefengLi commented 2 years ago

如果密码中包含@,可以通过在headers里增加Authorization,换种方式实现es的认证,其中value是通过Basic Auth加密后的字符串,可以通过postman查找。如下,已测试通过。

header

name#Authorization#/name

value#Basic xxxxxx#/value

/header

,#替换成><