Update auth-logs.md

Feat: Adding new information about visualizing log info in the Debian OS
pull/8585/head
Bryan Wilches 1 week ago committed by GitHub
parent ca30955e9f
commit d32a98acc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/linux/content/server-review/auth-logs.md

@ -9,5 +9,13 @@ Here is an example of how you can use the `tail` command to view the last few en
```bash
tail /var/log/auth.log
```
However, there is a newer way to see the logs in your system. In the Debian OS there is a directory called **journal** located in the /var/log. To access the collected log data it is required to use the `journalctl` command, which will output the logs.
Here is an example of how you can use the `journalctl` command:
```bash
journalctl --since "yesterday"
```
The last command will display all the collected information since the day before the current day. You may want to use the man journalctl to see all the options available for this command.
Get yourself familiar with reading and understanding auth logs, as it's one essential way to keep your server secure.
Loading…
Cancel
Save