![]() For this we need to install the package firstly. The name itself implies that it is used to view and monitor multiple log files. If you want to display multiple log files simultaneously use the multitail command. Using Multitail command – view multiple log files To view the live output of the file using –F with less command as shown below. This command will only display the last five lines of the log file, as shown below. # sudo tail –n5 –f /var/log/apache2/access.log If you want to display a limited number of lines use –n and the number of lines you want to display, as shown below. To use this command –f is used to follow the content of the file, open up the terminal and type the following command: # sudo tail –f /var/log/apache2/access.logĪs log files are changed apparently. ![]() It is the most commonly used command to view logs. In this tutorial, we will learn how to view and monitor log files in CentOS8 using different ways. The log files are stored in /var/log directory and its subdirectory. All Linux systems create and store information about servers, boot processes, kernel, and applications in log files, which can be helpful for troubleshooting as it contains systems activity logs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |