how to show log time in millisecond

asked 2019-04-12 08:10:12 -0500

cw gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-04-12 09:05:31 -0500

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 and

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2019-04-12 08:10:12 -0500

Seen: 801 times

Last updated: Apr 12 '19