Linux Shell Script: Logging Tasks

no-image-2812
Linux Shell Script: Logging Tasks

In this article by Sarath Lakshman, author of Linux Shell Scripting Cookbook, we will use a technique called logging by which important information is written to a file while the application is running. By reading this file, we can understand the timeline of the operations that are taking place with a particular software or a daemon. If an application or a service crashes, this information helps to debug the issue and enables us to fix any issues. Logging and monitoring also helps to gather information from a pool of data. Logging and monitoring are important tasks for ensuring security in the operating system and for debugging purposes. The recipes covered in this article are:

* Information about logged users, boot logs, failure boots
* Logging access to files and directories
* Logfile management with logrotate
* Logging with syslog
* Monitoring user logins to find intruders
* Finding out active user hours on a system

Website Link Visit Link Here
Category
Author: Packt Publishing
Comments

ToolBox
  • February 1, 2011 1:15 pm
  • Related Tutorials

    Subscribe to get this amazing EBOOK FREE

    Loading

    By subscribing to this newsletter you agree to our Privacy Policy

    Skip to content