|
Home
Documentation
Screenshots
Download
Older Versions
Contact
|
KLogWatchSection: User Manuals (1)Updated: Aug 2006 NAMEklogwatch - Netfilter packet monitorSYNOPSISklogwatch [-d] [-k] [-p] [-f logfile ]DESCRIPTIONklogwatch is a simple monitor that watches a file for netfilter log messages. When a new log message appears, klogwatch will show an "alert" icon in the System Tray. Hovering over the system tray icon will show the number of new and total packets logged. Clicking on the icon will toggle the main window. The main window offers a number of functions. The central view shows a list of log entries. Right clicking on the column headers will allow a user to set which columns to display. Columns may also be resized, reordered, and sorted to suit the user's needs. These settings will be remembered on restart. When a new log entry is detected, it will appear in the list in boldface. Clicking on an entry or hiding the window will cause the entry to lose its "new" status. Double-clicking on an entry will perform a configurable action. This defaults to resolving the source's hostname. Right clicking on an entry will allow users choose among several actions to perform. Many of these actions will only appear when their related columns are displayed.Custom ActionsIf the standard actions do not suit a user's needs, a user may configure klogwatch to execute a custom command or script. When the custom command is run, klogwatch captures stderr and stdout and displays them as the program executes. Log entry information is passed to the command as shell environment variables. The following environment variables are defined:
PROGRAM OPTIONS
FILES~/.kde/share/config/klogwatchrc
DIAGNOSTICSIf the -p, or -k options are used, klogwatch will exit with code 0 if the succeeded or 1 otherwise. Klogwatch is a KUniqueApplication, so it will exit with code 0 if the -f option is used and there is already an instance running.SEE ALSOiptables (8), logrotate (8)BUGSKlogwatch can identify when a log-rotation occurs (see logrotate (8)), and continues to monitor the file as long as the name of the latest file does not change. Alternative log rotation systems, which change the name of the latest file, cannot be monitored past a log rotation. Report other bugs to the current maintainter. |