UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 2c3fc535 authored by James Kuhn's avatar James Kuhn
Browse files

Update linlog_fg.adoc

parent 31a869b4
No related merge requests found
Pipeline #114439 passed with stages
in 29 seconds
......@@ -184,7 +184,7 @@ Since Syslog log files are plain text documents they are easily filtered using s
.*Filtering Syslog Output With Grep*
[source,bash]
----
grep timesyncd /var/log/syslog <1>
cat /var/log/syslog | grep timesyncd <1>
Oct 2 17:24:25 sup09 systemd-timesyncd[3526]: Timed out waiting for reply from 91.189.94.4:123 (ntp.ubuntu.com).
Oct 2 17:58:46 sup09 systemd-timesyncd[3526]: Timed out waiting for reply from 91.189.91.157:123 (ntp.ubuntu.com).
......@@ -200,7 +200,7 @@ Don't forget that grep also supports Regular Expressions to find patterns of str
.*Filtering Syslog Output With Grep*
[source,bash]
----
grep -R "\w*\.\w*\.\w*" /var/log/syslog <1>
cat /var/log/syslog | grep -R "\w*\.\w*\.\w*" <1>
Oct 2 18:06:47 sup09 systemd[1]: Starting User Manager for UID 0...
Oct 2 18:33:27 sup09 systemd-timesyncd[3526]: Timed out waiting for reply from 91.189.91.157:123 (ntp.ubuntu.com).
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment