+3 votes
63 views
Monitor Log Linux

in Linux/Unix by (552k points)
reopened | 63 views

1 Answer

+4 votes
Best answer

How to Monitor Linux Log

Monitoring Linux through the use of commands offers several advantages. First of all, it allows us to have more precise and real-time control over the operating system, thus facilitating the detection and resolution of performance or security problems. In addition, system monitoring allows us to have a detailed view of system resources, such as CPU usage, memory and/or disk usage, thereby optimizing performance. With this, we will also obtain information on the status of the running processes, thereby being able to identify moments of error..

 

If we must administer Linux systems, one of the most essential tasks to carry out is to supervise the logins since with this we determine who and when accessed the system and it is ideal for monitoring unauthorized changes either in the system itself or in any of its components. , TechnoWikis brings this tutorial to teach you the simple way to check who has logged into your system and thus rule out possible unauthorized access.

 

 

 

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

How to Monitor Linux Log

 

Step 1

The first step we open the terminal in this case will be Ubuntu, there we will execute the following command:
 sudo less /var/log/auth.log 
Step 2

We enter the password and we will have access to the following. We will see full details of each login, we exit this screen with the letter q.

 

 

image

 

Step 3

Now it will be possible to use another simple command for this action to see the logs, we enter the following command in the terminal:
 last 
Step 4

We see the details with date and time of login.

 

 

image

 

step 5

Finally it will be possible to use the “lastlog” command to see all the lines with the status of whether or not they have logged into the system:

 

image

 

step 6

When someone has accessed we see when they did:

 

image

 

These options are simple but practical to see the login log in Linux..

 


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Apr 10, 2023 in Linux/Unix by backtothefuture (552k points) | 61 views
+5 votes
1 answer
asked Feb 17, 2023 in Linux/Unix by backtothefuture (552k points) | 74 views
+5 votes
1 answer
asked Oct 18, 2022 in Linux/Unix by backtothefuture (552k points) | 71 views
+5 votes
1 answer
asked Nov 19, 2019 in Linux / Unix by backtothefuture (552k points) | 269 views
+4 votes
1 answer
asked Oct 28, 2019 in Linux / Unix by backtothefuture (552k points) | 245 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users