how to show log time in millisecond
The current logs for devstack@n-api.service show the time like "Apr 10 10:58:52". Is it possible to show the time in milliseconds?
First time here? Check out the FAQ!
The current logs for devstack@n-api.service show the time like "Apr 10 10:58:52". Is it possible to show the time in milliseconds?
Devstack uses journald for logging, and the timestamp is actually generated by journald, not the OpenStack services. The journalctl command has options for displaying microseconds.
When journald is not used, the log format is set by logging_context_format_string
andlogging_default_format_string
. You can also try log_date_format
. These config variables are used by all services, not only Nova, and print milliseconds by default. See https://docs.openstack.org/nova/lates... and https://docs.openstack.org/oslo.log/3....
Asked: 2019-04-12 08:10:12 -0600
Seen: 1,146 times
Last updated: Apr 12 '19
Instance Console Log is not being created in compute node? [closed]
How to logrotate openstack logs based on size ?
How do you log RBAC events with Keystone?
Is there any log management tool which work closely with openstack logs?
location of ceilometer log file [closed]
ERROR aodh.notifier [-] Unable to notify alarm
Can't block migration for the first time only