# Sending logs to ElasticSearch directly

**URL:** <https://discuss.elastic.co/t/sending-logs-to-elasticsearch-directly/283640>\
**Category:** Elasticsearch\
**Created:** [September 8, 2021, 9:41am UTC](https://discuss.elastic.co/t/sending-logs-to-elasticsearch-directly/283640 "2021-09-08T09:41:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adm3](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@adm3](https://discuss.elastic.co/u/adm3)\
**Post date:** [September 8, 2021, 9:41am UTC](https://discuss.elastic.co/t/sending-logs-to-elasticsearch-directly/283640/1 "2021-09-08T09:41:46Z")

</div>

# 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`  
`xpack.security.enabled: true`  
`xpack.security.transport.ssl.enabled: true`  
`xpack.security.transport.ssl.verification_mode: none`  
`xpack.security.transport.ssl.client_authentication: required`  
`xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/elastic-certificates.p12`  
`xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/elastic-stack-ca.p12`  
`xpack.security.http.ssl.enabled: true`  
`xpack.security.http.ssl.keystore.path: /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=/192.168.119.136:9200, remoteAddress=/192.168.119.134:55539}*`\*\*

`io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: **bad_certificate*`\*\*

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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 8, 2021, 9:42am UTC](https://discuss.elastic.co/t/sending-logs-to-elasticsearch-directly/283640/2 "2021-09-08T09:42:38Z")

</div>

Welcome to our community! 😃

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 6, 2021, 9:43am UTC](https://discuss.elastic.co/t/sending-logs-to-elasticsearch-directly/283640/3 "2021-10-06T09:43:20Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
