File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,18 @@ export const logsCommand = ({
38
38
flags : '-X, --deleteLogGroups' ,
39
39
description : 'delete log groups afterwards' ,
40
40
} ,
41
+ {
42
+ flags : '-a, --age' ,
43
+ description : 'age of logs in minutes (defaults to 5 minutes)' ,
44
+ } ,
41
45
] ,
42
- action : async ( { numLogGroups, numLogStreams, filter, deleteLogGroups } ) => {
46
+ action : async ( {
47
+ numLogGroups,
48
+ numLogStreams,
49
+ filter,
50
+ deleteLogGroups,
51
+ age,
52
+ } ) => {
43
53
const logGroups =
44
54
(
45
55
await cf . send (
@@ -102,6 +112,8 @@ export const logsCommand = ({
102
112
numLogStreams !== undefined
103
113
? parseInt ( numLogStreams , 10 )
104
114
: 100 ,
115
+ endTime : Date . now ( ) ,
116
+ startTime : Date . now ( ) - parseInt ( age ?? '5' , 10 ) * 60 * 1000 ,
105
117
} ) ,
106
118
) ,
107
119
) ,
You can’t perform that action at this time.
0 commit comments