Sending logs to ElasticSearch directly

I'm trying to send logs directly to elasticsearch from Velocirpator, but I'm getting the below error when enabled xpack security features.

below is my elastic config file

---------------------------------- Security -----------------------------------
Configure Security Settings true true none required /etc/elasticsearch/elastic-certificates.p12 /etc/elasticsearch/elastic-stack-ca.p12 true /etc/elasticsearch/http.p12

Generated error when data being forwarded

*'[2021-09-08T12:37:06,775][WARN ][o.e.h.AbstractHttpServerTransport] [ELK-1] c**aught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/, remoteAddress=/}***

io.netty.handler.codec.DecoderException: Received fatal alert: **bad_certificate***

at io.netty.handler.codec.ByteToMessageDecoder.callDecode( ~[netty-codec-4.1.49.Final.jar:4.1.49.Final]*

Welcome to our community! :smiley:

Can you please adjust your formatting as it's very hard to follow what's happening :slight_smile: