Syslog・debugとtelemetryの時刻を合わせる2 / 5
設定と送信先
service timestamps log datetime msec localtime show-timezone
service timestamps debug datetime msec localtime show-timezone
logging buffered 64000 informational
logging console critical
logging host 192.0.2.50
logging trap warnings
logging source-interface Loopback0
これはLoopback0とcollectorへのrouteがある例である。console criticalは0〜2、remote warningsは0〜4、buffer informationalは0〜6というように、出力先ごとに対象が異なる。logging synchronousはcommand入力中の表示を整える。
remoteでだけ欠ける場合、logging host/source/VRF、routeと戻り、transport/port、collectorの受信とseverityを対応させる。timestamp精度だけを増やしてもclockのずれは直らない。NTP等の同期とtimezoneも合わせる。