Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

option to set number of days of logfiles to keep #202

Closed
2 of 7 tasks
pierresetteskog opened this issue Dec 11, 2018 · 1 comment
Closed
2 of 7 tasks

option to set number of days of logfiles to keep #202

pierresetteskog opened this issue Dec 11, 2018 · 1 comment

Comments

@pierresetteskog
Copy link
Contributor

pierresetteskog commented Dec 11, 2018

A few questions before you begin:

Is this an issue related to the Serilog core project or one of the sinks or
community projects.
This issue list is intended for Serilog Elasticsearch Sink issues. If this issue relates to another sink or to the code project,
please log on the related repository. Please use Gitter chat and Stack Overflow for discussions and questons.

Does this issue relate to a new feature or an existing bug?

  • Bug
  • New Feature

What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.

What is the target framework and operating system? See target frameworks & net standard matrix.

  • netCore 2.0
  • netCore 1.0
  • 4.7
  • 4.6.x
  • 4.5.x

Please describe the current behavior?
Old log files needs to be removed

Please describe the expected behavior?
in DurableElasticSearchSink.cs i expect an new option options.BufferFileRetainedCountLimit for how many days to keep the files, todays value is null.
Let me know if I should make a PR even if RollingFileSink is deprecated for FilelSink
_sink = new RollingFileSink(
options.BufferBaseFilename + FileNameSuffix,
_state.DurableFormatter,
options.BufferFileSizeLimitBytes,
options.BufferFileRetainedCountLimit);

If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem

pierresetteskog pushed a commit to tacdisecomm/serilog-sinks-elasticsearch that referenced this issue Dec 14, 2018
option to set number of days of logfiles to keep serilog-contrib#202
mivano pushed a commit that referenced this issue Jan 26, 2019
* added BufferFileCountLimit to limit number of files
option to set number of days of logfiles to keep #202

* init

* Added example and fixes for persistant logging mosly code from https://github.com/serilog/serilog-sinks-seq

* added BufferCleanPayload

* dont force inheritance the timer start in base class is ca 5sec and will not start before inheritade base class is finished

* renamed to Elasticsearch and added documentation in Readme and chenges

* rename
@mivano
Copy link
Contributor

mivano commented Mar 23, 2019

Is this still an active issue or already fixed by the latest changes?

@mivano mivano closed this as completed Mar 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants