Ask Your Question
0

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
0

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 https://docs.openstack.org/nova/lates... and https://docs.openstack.org/oslo.log/3....

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 12 times

Last updated: Apr 12