-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Archive logs to separate folder #9906
Comments
Thanks for your feature request! We'd love a PR specifically for making the time stamp optional. Please include some tests as well to validate that existing log names are not broken by default, and that the new log format maintains configuring the log name and file type. For Linux, Please feel free to @ tag me when the PR is submitted! |
I'm thinking about a related request (#10976) and want to make sure that I understand your use case (and the ways in which it may differ from #10976). If you're interested in discussing some options and how they do (or don't) support your use cases, send me a brief message at the email address in my Github profile. We could schedule a time to talk in a few weeks. |
My issue had 2 concerns -
Would appreciate it if the second requirement is also implemented as well. In that case, log monitoring software (e.g. Geneos, Filebeat etc.) can only focus on |
Feature Description
Consul logs files are archived in same location as they are created , thus making the folder crowded. For someone wanting to keep only latest file and move rest to an archive folder does not have any option.
For backward compatibility, this location would be an optional feature and if not provided, consul will work as before.
Such option is provided by other logging frameworks like NLog, Log4Net etc.
Use Case(s)
This feature will be beneficial for logs monitoring software to focus only 1 file (as rest will be in another folder). Currently its not possible as log file do not have fixed names (unix time is appended to log file name) that's why such softwares need to be provided filters like *.log or Consul*.log.
I'll be happy to raise a PR if this feature looks useful.
The text was updated successfully, but these errors were encountered: