-
Notifications
You must be signed in to change notification settings - Fork 188
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
Alternate compression formats and viewing compressed files in UI #1259
Conversation
this.compressExt = compressExt; | ||
} | ||
|
||
public static LogrotateCompressionSettings gzip() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd consider renaming this to default()
, since it's just an implementation detail of logrotate that it's using gzip
to compress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default is a reserved word/identifier in java, you can't name a method that. Renamed to empty()
instead
This adds support for other compression formats besides gzip to be used for logrotate. The main target of this PR is support for bzip2, but currently
LogrotateCompressionSettings
is not enforcing any particular extensions, so we can extend to other formats later if needed. I had started adding supported log formats as an enum, but realized I would need the additional fields for executable locations anyways and might as well leave the config more open.Changes will be needed in logfetch to handle bz2 files as well and will come in a separate PR.
note : Also added a few more to the not tail-able files list in the ui as part of this too
/cc @tpetr @MattCCS