File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,15 @@ impl Zones {
272
272
paths. extra . push ( ( "cockroachdb" , dir) ) ;
273
273
}
274
274
275
+ // Grab the chrony logs that are not apart of the standard SMF
276
+ // logs.
277
+ if zone. starts_with ( "oxz_ntp" ) {
278
+ let mut dir = zones_path. clone ( ) ;
279
+ dir. push ( zone) ;
280
+ dir. push ( "root/var/log/chrony" ) ;
281
+ paths. extra . push ( ( "ntp" , dir) ) ;
282
+ }
283
+
275
284
zones. insert ( zone. to_string ( ) , paths) ;
276
285
}
277
286
}
Original file line number Diff line number Diff line change @@ -682,6 +682,27 @@ impl LogsHandle {
682
682
}
683
683
}
684
684
}
685
+
686
+ // Include the chrony logs found in "/var/log/chrony".
687
+ // These currently include:
688
+ // - measurements.log
689
+ // - statistics.log
690
+ // - tracking.log
691
+ //
692
+ // TODO: Once omicron#4728 is picked up we will need to handle the
693
+ // rotation and sorting of these files.
694
+ if service == "ntp" {
695
+ for log in service_logs. extra {
696
+ self . process_logs (
697
+ & service,
698
+ & mut zip,
699
+ & mut log_snapshots,
700
+ log. path . as_path ( ) ,
701
+ LogType :: Extra ,
702
+ )
703
+ . await ?;
704
+ }
705
+ }
685
706
}
686
707
687
708
zip. finish ( ) ?;
You can’t perform that action at this time.
0 commit comments