Error
[2023-11-15T03:54:06,861][WARN ][o.e.h.AbstractHttpServerTransport] [ip-172-31-95-25] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/172.31.95.25:9200, remoteAddress=/172.31.95.25:38564}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:499)
at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
See logs for more details.
Solution
Add ssl.verification_mode: none in elastic-agent.yml
$ systemctl stop elastic-agent
$ cd /opt/Elastic/Agent
$ vi elastic-agent.yml
$ systemctl start elastic-agent
$ systemctl status elastic-agent
outputs:
default:
type: elasticsearch
hosts:
- 'https://172.31.95.25:9200'
username: 'elastic'
password: '7SNe*fn_aqroKovhjH4E'
ssl.verification_mode: none
output_permissions:
Latest posts by rajeshkumar (see all)
- Sonarqube: java.lang.IllegalStateException: Error status returned by url 401 - September 9, 2024
- SonarQube Error: Error status returned by url [https://api.sonarcloud.io - September 5, 2024
- AWS SES Errors and Solution - September 2, 2024