Bug 1928468

Summary: (rfe) running must-gather to collect a subset of logs from timeframe last X hours
Product: OpenShift Container Platform Reporter: Inbar Rose <irose>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED DEFERRED QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: low    
Version: 4.8CC: aos-bugs, cnv-qe-bugs, jokerman, mfojtik, stirabos, syedriko, vparfono
Target Milestone: ---Keywords: RFE
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: logging-core
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-27 10:27:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Inbar Rose 2021-02-14 09:59:16 UTC
Description of problem:

when running must-gather it produces a lot of logs which take up a lot of storage. on a typical cluster it can be upwards of 1GB after only a couple days of using this cluster. I would like to be able to collect logs only from the last X hours. (for storing as an artifact in CI/automation/test runs)

(specifically the kubelet logs for each node)


Actual results:

I get logs from the beginning of the cluster time.


Expected results:

I get logs only from the last X hours

Comment 5 Inbar Rose 2021-04-19 08:11:40 UTC
moving to Openshift product.

Comment 6 Sergey Yedrikov 2021-04-26 18:39:39 UTC
@irose General-purpose must-gather doesn't go through Cluster Logging to collect logs. I'd suggest starting with https://github.com/openshift/must-gather and see which team (oc?) works on that.

Comment 7 Maciej Szulik 2021-04-27 10:27:16 UTC
Moved to https://issues.redhat.com/browse/WRKLDS-259