Download Managing Linux Systems with Webmin

Transcript
C
H A P T E R
5 4
Logging in Webmin
T
his chapter explains how and what Webmin logs, and how those logs
can be searched and viewed.
54.1 Introduction to Logging
When logging is enabled, Webmin will record every action taken using it that has some effect on
your system, such as the creation of a user or the changing of an Apache setting. Pages that do not
actually change anything on your system, such as those that just display icons, list users, or show
the current settings for some object will not write anything to the action log. In this way, it is different than the separate CLF log file that Webmin writes to /var/webmin/miniserv.log, which
records every single page visited and image loaded.
Most actions performed in Webmin change configuration files, run commands, or execute
SQL statements. When the recording of these file changes is enabled, the details of each will be
included in the actions log so you can see exactly what Webmin did when you told it to create a
UNIX user or delete a DNS zone. This can be helpful for understanding what is really going on
behind the scenes if you are new to system administration or want to see how actions are implemented. Not all modules perform action logging, though, particularly those that are old or have
been written by third-party developers.
As Section 51.4 “Setting Up Logging” explains, logging can be turned on in the Webmin
Configuration module. Basic action logging is enabled by default, but the recording of file
changes is not. To gain the most benefit from the Webmin Actions Log modules, file changes
should be logged as well. This will slow down the program slightly though, and consume more
disk space for recording the changes.
Some types of action will never have any associated file changes logged, even if this feature
is enabled. Such actions might perform all their work with network connections or modify a file
707