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

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

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?


Default Elasticsearch configuration from Elasticsearch base image.

elasticsearch/elasticsearch.yml at main · elastic/elasticsearch · GitHub

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

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

{"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" }

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 :slight_smile:

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