On Thursday, June 11, 2020 at 8:29:43 PM UTC-4, Henri Emurian wrote:
>
> Hi Vince, I ran the journalctl command but don't know how to pipe it to 
> the grep command you provided. I tried running it in a second terminal but 
> to no avail. I researched the grep command and saw some syntax examples, 
> but none of them seemed to apply. Thank you for your input. 
>

henri,

a linux 'pipe' is one way to send the output from one program to another.  
it is indicated using the vertial bar character: |

so to pipe the output from journalctl into grep, you would do this:

journalctl | grep -i weewx

the string 'weewx' is what you are looking for, and the '-i' option says 
"ignore case"

actually, you must do this:

sudo journalctl | grep -i weewx

because systemd forces you to have escalated privileges in order to read 
the systemd version of system logs.

if you install syslog-ng then you will get the standard unix logs, which 
are plain text.

journalctl is the systemd way of logging - it is copying the way windows 
does logging, by cramming everything into a single binary blob that is much 
more difficult to work with and more prone to failure than the standard 
unix approach.  journalctl is another example of how systemd is taking over 
the linux ecosystem, and not in a good way.  (apologies for the 
editorials.  or not.)

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5754882b-829a-4901-bb58-3add29889caeo%40googlegroups.com.

Reply via email to