# I was logging my log from .net application using seilog before enabling Xpack security in stack the logs stopped comming

**URL:** <https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499>\
**Category:** Elasticsearch\
**Created:** [November 9, 2022, 5:24am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499 "2022-11-09T05:24:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DIVYANSH\_SINGH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divyansh_singh/32/112851_2.png) [@DIVYANSH\_SINGH](https://discuss.elastic.co/u/DIVYANSH_SINGH)\
**Post date:** [November 9, 2022, 5:24am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/1 "2022-11-09T05:24:42Z")

</div>

I was logging my log from .net application using serilog before enabling Xpack security in stack the logs stopped comming How will i solve this

---

<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:** [November 9, 2022, 5:50am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/2 "2022-11-09T05:50:56Z")

</div>

Please share more information as there is very little to go on here.

What does your code look like?  
What is your code logging as the response from Elasticsearch?

---

<div class="post-metadata">

**Author:** ![DIVYANSH\_SINGH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divyansh_singh/32/112851_2.png) [@DIVYANSH\_SINGH](https://discuss.elastic.co/u/DIVYANSH_SINGH)\
**Post date:** [November 9, 2022, 6:18am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/3 "2022-11-09T06:18:15Z")

</div>

* * *

## Default Elasticsearch configuration from Elasticsearch base image.

## [elasticsearch/distribution/docker/src/docker/config/elasticsearch.yml at master · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/blob/master/distribution/docker/src/docker/config/elasticsearch.yml)

# 

cluster.name: "docker-cluster"  
network.host: 0.0.0.0  
discovery.type: single-node

## X-Pack settings

## see [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html)

# 

xpack.license.self\_generated.type: basic  
xpack.security.enabled: true  
xpack.security.authc.api\_key.enabled: true  
xpack.monitoring.collection.enabled: true  
xpack.monitoring.elasticsearch.collection.enabled: true  
discovery.seed\_hosts :   
xpack.security.transport.ssl.enabled: true  
xpack.security.transport.ssl.keystore.type: PKCS12  
xpack.security.transport.ssl.verification\_mode: certificate  
#xpack.security.transport.ssl.keystore.path: elastic-certificates.p12  
#xpack.security.transport.ssl.truststore.path: elastic-certificates.p12  
this is my elasticsearch.yml file

---

<div class="post-metadata">

**Author:** ![DIVYANSH\_SINGH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divyansh_singh/32/112851_2.png) [@DIVYANSH\_SINGH](https://discuss.elastic.co/u/DIVYANSH_SINGH)\
**Post date:** [November 9, 2022, 6:23am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/4 "2022-11-09T06:23:52Z")

</div>

{"type": "deprecation.elasticsearch", "timestamp": "2022-11-09T06:13:56,513Z", "level": "CRITICAL", "component": "o.e.d.x.c.s.SSLService", "cluster.name": "docker-cluster", "node.name": "65b160a9c7f2", "message": "invalid SSL configuration for xpack.security.transport.ssl - server ssl configuration requires a key and certificate, but these have not been configured; you must set either [xpack.security.transport.ssl.keystore.path], or both [xpack.security.transport.ssl.key] and [xpack.security.transport.ssl.certificate]", "key": "invalid\_ssl\_configuration", "category": "security" }

---

<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:** [November 9, 2022, 6:47am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/5 "2022-11-09T06:47:28Z")

</div>

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

---

<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:** [December 7, 2022, 6:48am UTC](https://discuss.elastic.co/t/i-was-logging-my-log-from-net-application-using-seilog-before-enabling-xpack-security-in-stack-the-logs-stopped-comming/318499/6 "2022-12-07T06:48:03Z")

</div>

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