Santiago Scalzadonna:
Hi all! I was taking the lab: Lab: Manage Processes and Analyze Log Files.
And I got this question:
Analiyze the error logs through journalctl with the priority flag and copy the output to /home/bob/.priority/priority.log.
Not sure which priority flag to apply?
Maybe there’s something missing in the question?
Thanks in advance!
Aaron Lockhart:
@Santiago Scalzadonna, you would want to use sudo journalctl -p err
to set the priority level to error, and then redirect the output to the indicated location.
Santiago Scalzadonna:
oh great! I tried with sudo journalctl -p 3
and it worked too, thanks so much Aaron!
Aaron Lockhart:
The numeric priority levels are completely acceptable too. It’s often easier for people to remember named levels, but one of my favorite things about Linux is the number of ways you can do almost everything.
Santiago Scalzadonna:
you are right, I do enjoy that level of flexibility too! btw, great course content and explanations, enjoying it a lot!
Aaron Lockhart:
Thank you!