|
...
|
...
|
@@ -94,25 +94,25 @@ query facilities. We'll start with some common options.
|
|
94
|
94
|
|
|
95
|
95
|
Follow logs for a specific service::
|
|
96
|
96
|
|
|
97
|
|
- journalctl -f --unit devstack@n-cpu.service
|
|
|
97
|
+ sudo journalctl -f --unit devstack@n-cpu.service
|
|
98
|
98
|
|
|
99
|
99
|
Following logs for multiple services simultaneously::
|
|
100
|
100
|
|
|
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
|
|
102
|
102
|
|
|
103
|
103
|
or you can even do wild cards to follow all the nova services::
|
|
104
|
104
|
|
|
105
|
|
- journalctl -f --unit devstack@n-*
|
|
|
105
|
+ sudo journalctl -f --unit devstack@n-*
|
|
106
|
106
|
|
|
107
|
107
|
Use higher precision time stamps::
|
|
108
|
108
|
|
|
109
|
|
- journalctl -f -o short-precise --unit devstack@n-cpu.service
|
|
|
109
|
+ sudo journalctl -f -o short-precise --unit devstack@n-cpu.service
|
|
110
|
110
|
|
|
111
|
111
|
By default, journalctl strips out "unprintable" characters, including
|
|
112
|
112
|
ASCII color codes. To keep the color codes (which can be interpreted by
|
|
113
|
113
|
an appropriate terminal/pager - e.g. ``less``, the default)::
|
|
114
|
114
|
|
|
115
|
|
- journalctl -a --unit devstack@n-cpu.service
|
|
|
115
|
+ sudo journalctl -a --unit devstack@n-cpu.service
|
|
116
|
116
|
|
|
117
|
117
|
When outputting to the terminal using the default pager, long lines
|
|
118
|
118
|
appear to be truncated, but horizontal scrolling is supported via the
|