Why does rsyslog write incorrect timestamps into logs even if the system's timezone is correct?

Solution Verified - Updated -

Issue

  • Why does rsyslog write incorrect timestamps into logs even if the system's timezone is correct?
  • In RHOSP, overcloud node doesn't have correct timezone in /var/log/messages. After reboot, the timestamp in /var/log/messages is adjusted to the expected timezone. Why does it happen?

Environment

  • Red Hat Enterprise Linux 7 / 8 / 9
  • Red Hat OpenStack Platform 13

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content