serilog-sinks-http
serilog-sinks-http copied to clipboard
Add ability to select the extension of log files on durability
There is an issue with supporting compatibility between different sinks. As an example Elastic.sink has json extension, but HTTP.sink - txt
It will be nice to have the ability to override the extension
Hi there and welcome to this repository!
A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it.
Hi @RuslanLatsina. Can you elaborate a bit more on why you find it problematic that different sinks create files with different file endings?
Hi @FantasticFiasco , I'm trying to inject http.Sink with elastic.sink into project but found that when I'm trying switch destination, bookmark file is not trying to be updated by itself. And here i got an issue when bookmark file contains invalid last-file extension, the transfering is not continued.
So you are sending log events to Elasticsearch using Serilog.Sinks.Elasticsearch and you use this sink to send the same log events to another log server. Is this correct?
...bookmark file is not trying to be updated by itself
I don't know what you mean here. Can you explain a bit more?
...bookmark file contains invalid last-file extension,
What is a "last-file extension"?
For reference, the reason why we use txt files is described in #169.
Hi @FantasticFiasco , yeah, you are right. My c# desktop application gets the destination log server from API. And if we change the destination from ElasticSearch to another LogServer, which sends logs through API, the logs are not sent anymore.
I observed that on LogProvider change, the log files started to have another file extension. And if Bookmark file contains an invalid extension, the logs are not sent to another LogServer. But if I clean bookmark file content and remove all files with ".json" extension - the logs are sent successfully again.

Is the bookmark file and the buffer files shared between Serilog.Sinks.Elasticsearch and this sink? I.e. are both sinks relying on the same set of files, or do they have their individual set of files?
Close due to inactivity.