Skip to content

Lab2.1StandardizingLogTimes

Beth edited this page Jan 29, 2025 · 1 revision

This tech journal entry goes over the settings to change to make log times reflect the time on the device for different operating systems.

Xubuntu and CentOS

The setting to change is located in the file /etc/rsyslog

Locate the module that tells rsyslog to use a certain time format and uncomment (See below for how these modules look)

Then systemctl restart rsyslog and enter a new message for the log

  • logger -t test [message]
  • Find the message with cat /var/log/rsyslog | grep [message]

Xubuntu Module

This is the time module for xubuntu

image

This is the time module as it appears in CentOS

image

Not all versions of Nano will have the colored text but this is how the rsyslog configuration file should appear

Clone this wiki locally