File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,25 +94,25 @@ query facilities. We'll start with some common options.
9494
9595Follow logs for a specific service::
9696
97- journalctl -f --unit devstack@n-cpu.service
97+ sudo journalctl -f --unit devstack@n-cpu.service
9898
9999Following logs for multiple services simultaneously::
100100
101- journalctl -f --unit devstack@n-cpu.service --unit devstack@n-cond.service
101+ sudo journalctl -f --unit devstack@n-cpu.service --unit devstack@n-cond.service
102102
103103or you can even do wild cards to follow all the nova services::
104104
105- journalctl -f --unit devstack@n-*
105+ sudo journalctl -f --unit devstack@n-*
106106
107107Use higher precision time stamps::
108108
109- journalctl -f -o short-precise --unit devstack@n-cpu.service
109+ sudo journalctl -f -o short-precise --unit devstack@n-cpu.service
110110
111111By default, journalctl strips out "unprintable" characters, including
112112ASCII color codes. To keep the color codes (which can be interpreted by
113113an appropriate terminal/pager - e.g. ``less ``, the default)::
114114
115- journalctl -a --unit devstack@n-cpu.service
115+ sudo journalctl -a --unit devstack@n-cpu.service
116116
117117When outputting to the terminal using the default pager, long lines
118118appear to be truncated, but horizontal scrolling is supported via the
You can’t perform that action at this time.
0 commit comments