Skip to content

Commit 6e429d4

Browse files
committed
[spr] initial version
Created using spr 1.3.6-beta.1
2 parents 28bb4b0 + 764bf45 commit 6e429d4

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

dev-tools/oxlog/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,15 @@ impl Zones {
272272
paths.extra.push(("cockroachdb", dir));
273273
}
274274

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+
275284
zones.insert(zone.to_string(), paths);
276285
}
277286
}

sled-diagnostics/src/logs.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,27 @@ impl LogsHandle {
682682
}
683683
}
684684
}
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+
}
685706
}
686707

687708
zip.finish()?;

0 commit comments

Comments
 (0)