[ERROR][logstash.outputs.http ][main][23d0b8c9dd6c9bd0aaa6b478693e186a91d40ab527c967e119d5c93aa1519e9e] [HTTP Output Failure] Could not fetch URL {:url=>"https:/ /qyapi.weixin.qq.com/cgi-bin/webhook/send?key=24bf309e-449d-4bca-aa77-12f08a24fab3", :method=>:post, :message=>"Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty", :class=>"Manticore::UnknownException", :will_retry=>false}
之前一直是好好的,最近报错了,不知道是啥原因
之前一直是好好的,最近报错了,不知道是啥原因
2 个回复
hgditren
赞同来自:
http_method => "post"
url => "https :/ /qyapi.weixin.qq.com/cgi-bin/webhook/send?key=24bf309e-449d-4bca-aa77-12f08a24fab3"
content_type => "application/json; charset=utf-8"
format => "message"
message => '{"msgtype":"markdown","markdown":{"content":"<font color=\"warning\">自定义错误通知</font>,请相关同事注意。\n >错误信息:<font color=\"comment\">%{message}</font>\n >处理服务器:<font color=\"comment\">%{[host][hostname]}</font>"}}'
}
补充说明一下,因为站内发布内容不允许带外部连接,所以我吧url地址处理了一下
locatelli
赞同来自: