doc: add journalctl example for grepping the logs

I had to dig around for awhile to figure this out, so
this adds an example on how to grep journalctl nova logs
for a server instance UUID.

Change-Id: I6a5c47fbcba3af1822e2f9efc2ac20ebe0387f3f
This commit is contained in:
Matt Riedemann 2017-09-22 20:54:39 -04:00
parent 66a14df49e
commit 5085dc0fa5

View File

@ -118,6 +118,11 @@ When outputting to the terminal using the default pager, long lines
appear to be truncated, but horizontal scrolling is supported via the appear to be truncated, but horizontal scrolling is supported via the
left/right arrow keys. left/right arrow keys.
You can pipe the output to another tool, such as ``grep``. For
example, to find a server instance UUID in the nova logs::
sudo journalctl -a --unit devstack@n-* | grep 58391b5c-036f-44d5-bd68-21d3c26349e6
See ``man 1 journalctl`` for more. See ``man 1 journalctl`` for more.
Debugging Debugging