Allow chainsaw to read a directory containing more than one file#5
Open
tzachi-dar wants to merge 7 commits intoapache:masterfrom
tzachi-dar:Read-Directory3
Open
Allow chainsaw to read a directory containing more than one file#5tzachi-dar wants to merge 7 commits intoapache:masterfrom tzachi-dar:Read-Directory3
tzachi-dar wants to merge 7 commits intoapache:masterfrom
tzachi-dar:Read-Directory3
Conversation
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
…e*). Chainsaw will read all the files, from the latest to the newest and then will tail the last one. Files can also be in the gzip format. Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Member
|
Thanks for the contribution. Can you file a jira ticket for this? |
Contributor
Author
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Since log files might contain a lot of data that is not relevant, the maxLogingDays allows one to limit the number of files that will be used. For example if maxLogingDays=14 files that their last modified time is older than 14 days will not be read. Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
…ad twice (second time was ignored, but consumed resources). Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
Signed-off-by: Tzachi Dar <tzachi.dar@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On linux it is common to use logrotate to handle log files.
Logrotate trunks the files as they reach a certain size and also zips them.
Sometimes it is needed to open more than one file and show them on chainsaw.
An example to the content of such a directory is:
pump-loop-date.log
pump-loop-date.log.1
pump-loop-date.log.2.gz
pump-loop-date.log.3.gz
The goal is pass the directory name and the files pattern.
For example:
sftp://user:pass@192.168.1.20:20022/var/log/openaps/pump-loop-date.log*
and have chainsaw show all matching files by their order.