Comments (6)
Thanks for the report. Have you enabled and checked SelfLog for messages?
from serilog-sinks-elasticsearch.
Yes I have not tried SelfLog in the start method of service like this:
var file = File.CreateText(@"c:\logs\serilog-errors.txt");
Serilog.Debugging.SelfLog.Enable(TextWriter.Synchronized(file));
But it's empty, there are no errors, and nothing is written into it.
from serilog-sinks-elasticsearch.
Hmm, okay, thanks for the additional info. It may need investigation by someone familiar with Elasticsearch (just helping to maintain the repo here :-))
from serilog-sinks-elasticsearch.
I'm not familiar with the "serilog:write-to:Elasticsearch.nodeUris" setting, so i dont know if this applies to it, but when configuring the sink fluently in code, if you want to log to multiple elasticsearch instances, you need to add multiple sinks, instead of multiple endpoints to the same sinks.
If you just add multiple endpoints, it seems it will do round robin routing of the log events.
from serilog-sinks-elasticsearch.
That is correct. The ES sink uses the connection pool functionality. So normally you pass in a couple of endpoints and the client is clever enough to check health and connect to the available one.
If you want to send to multiple ES clusters, then you need to add multiple sinks. Or rethink your strategy; maybe write to a file and use logstash to output it to different clusters.
from serilog-sinks-elasticsearch.
Thanks for the information. I think I can work with single sink at the moment and if multiple sinks are needed, I can use multiple sinks.
from serilog-sinks-elasticsearch.
Related Issues (20)
- v9.0.0 fails template creation with ES v7 with ElasticsearchClientException HOT 3
- v. 9.0.0 - ElasticsearchClientException: Could not authenticate with the specified node HOT 1
- Add autogenerated template IndexAliases configuration properties HOT 2
- Possible clock issue?
- The ES7 template registration throw an exception HOT 1
- New version 9.0.3 doesn't work with Logstash HOT 1
- The client noticed that the server is not a supported distribution of Elasticsearch. HOT 1
- 9.0.3 did not bring in changes from 9.0.2 HOT 2
- Unable to connect and write logs to Elasticsearch v8.8.1 HOT 3
- Unable to upload logs to Elastic Search Cloud HOT 1
- Unable to send logs to OpenTelemetry backend (using Serilog in .Net framework 4.8)
- How can i add a custom Id to es with Serilog.Sinks.Elasticsearch
- Support the new TraceId and SpanId in Serilog HOT 1
- Add Support for OpenSearch.
- How do I update Dotnet Serilog Logging Config to Deal with new Elastic 8 security (https, username, password, tls cert)? HOT 1
- Enable configuration of IndexDecider also from a config file
- serilog.sinks.elasticsearch is missing NuGet package README file
- Not Load Type
- Serilog.Sinks.Elasticsearch 10.0.0 don't works with Serilog.Sinks.MariaDB 1.0.1
- Future of this sink HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serilog-sinks-elasticsearch.