You do not have permission to edit this page, for the following reason: The action you have requested is limited to users in the group: Users. You can view and copy the source of this page. You can see various logs using the <code>show log</code> command. </pre> === Basic Command === <pre> LYSH@MyHostName# show log {name} [-h] [-n NUMBER] [-w] [keyword] optional arguments: -h, --help show this help message and exit -n [NUMBER], --number [NUMBER] enter 0 to show all logs, and enter a value greater than 0 to show as much as the value entered -w, --watch show the log or setup status in real time </pre> If you want to see logs for a specific service, you ensure that the [[CLI - Services(daemons) | Runtime Log]] is enabled or not. The below table shows you all kinds of logs. {| class="wikitable" ! style='width:150px' | log name !! log description |- | apache2 || It is the apache2 access log. |- | dhcpv4 || It is the logs that were generated in real-time during the runtime of the dhcpv4 service. |- | dhcpv6 || It is the logs that were generated in real-time during the runtime of the dhcpv6 service. |- | failover || It is the logs that were generated in real-time during the runtime of the failover service. |- | logexp || It is the logs that were generated in real-time during the runtime of the logexp service. |- | lsyslog || It is the Syslog generated from the imRAD services. |- | mysqlerror || It is the Syslog generated from the imRAD services. |- | radius || It is the logs that were generated in real-time during the runtime of the radius service. |- | smgr|| It is the logs that were generated in real-time during the runtime of the smgr service. |- | startup|| It is the logs that were generated in real-time during the runtime of the startup service. |- | syslog|| It is the Syslog. |- | ufw || It is the blocked logs by the ufw. |- | update|| It is the Syslog generated from the imRAD services. |- |} === Display logs === <pre> LYSH@MyHostName# show log apache2 // Display all apache2 logs LYSH@MyHostName# show log radius // Display all radius logs </pre> === Display last n logs === <pre> LYSH@MyHostName# show log apache2 -n 10 // Display only the last 10 apache2 logs LYSH@MyHostName# show log radius -n 10 // Display only the last 10 radius logs </pre> === Display last n logs with keyword === <pre> LYSH@MyHostName# show log apache2 -n 10 request // Display only the last 10 apache2 logs filtered by "request" LYSH@MyHostName# show log radius -n 10 accept // Display only the last 10 radius logs filtered by "request" </pre> === Display logs in real-time === <pre> LYSH@MyHostName# show log apache2 -w // Display the apache2 logs in real-time LYSH@MyHostName# show log radius -w // Display the radius logs in real-time </pre> === Display logs in real-time with keyword === <pre> LYSH@MyHostName# show log apache2 -w request // Display the apache2 logs filtered by "request" in real-time LYSH@MyHostName# show log radius -w accept // Display the radius logs filtered by "accept" in real-time </pre> === keyword === The <code>&</code> is the Logical AND operator and the <code>|</code> is the Logical OR operator. <pre> LYSH@MyHostName# show log request&reply // Display the apache2 logs having both "request" and "reply" LYSH@MyHostName# show log request|reply // Display the apache2 logs having either "request" or "reply" </pre> Template used on this page: Template:Note (view source) Return to CLI - Log.