logview [ select ]
The config file can list logfiles using the wild cards as known from the ls(1) command. The list is resolved prior to each start of logview and only the files that exist on the system and are readable by the user are listed in the selection list.
This enables the user to have an identical configuration file for all servers and operating systems.
To continuously print a log file (tail -f), instead of loading the file into the viewer of logview, use the logtail(1) command.
Configuration file example:
# # log_files.cfg - configuration file for logview and logview # # [00] 08.08.2004 CWa Initial Version # $APPROOT/var/log/edrc.log $APPROOT/var/log/pack.log $APPROOT/var/log/patchinstall.log $APPROOT/var/log/filedist.log $APPROOT/var/log/rcmd.log $APPROOT/var/log/sysconfig.log $APPROOT/var/log/shttpd_*.log /etc/cmcluster/*/*.log /etc/shutdownlog ~ACME/log/sap_instance.log /opt/patrol/log/*.log /var/adm/cron/log /var/log/boot.log /var/log/cron /var/log/cups/access_log /var/log/cups/error_log /var/log/dmesg /var/log/httpd/* /var/log/lastlog /var/log/maillog /var/log/messages /var/adm/messages /var/log/samba/log.nmbd
Example usage:
[ /home/barney ] [ barney@acme001 ][bash]: logview 1) /opt/edrc/var/log/edrc.log 2) /opt/edrc/var/log/pack.log 3) /opt/edrc/var/log/patchinstall.log 4) /opt/edrc/var/log/sysconfig.log 5) /opt/ACME/log/sap_instance.log 6) /var/log/boot.log 7) /var/log/cron 8) /var/log/dmesg 9) /var/log/httpd/access_log 10) /var/log/httpd/access_log.1 11) /var/log/httpd/access_log.2 12) /var/log/httpd/access_log.3 13) /var/log/httpd/access_log.4 14) /var/log/httpd/error_log 15) /var/log/httpd/error_log.1 : 41) /var/opt/ACME/log/useradm.log 42) /var/opt/ACME/log/watchdog.log 43) /var/opt/samba/log.smb.rh7mzv7t001 select log:6 1 Jan 14 14:01:00 rh7mzv7t001 CROND[27550]: (root) CMD (run-parts /etc/cron.hourly) 2 Jan 14 15:01:00 rh7mzv7t001 CROND[27913]: (root) CMD (run-parts /etc/cron.hourly) 3 Jan 14 16:01:00 rh7mzv7t001 CROND[28276]: (root) CMD (run-parts /etc/cron.hourly) 4 Jan 14 18:01:00 rh7mzv7t001 CROND[29478]: (root) CMD (run-parts /etc/cron.hourly) ~ ~
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.