logview

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 29 August 2024
Index Return to Main Contents

 

NAME

logview - view a log file out of a list of defined logfiles

 

SYNOPSIS

edrc/bin/logview [ -h ]

logview [ select ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

give a selection of common logfiles to be viewed (view selected_logfile). The files to be listed in the selection list can be defined in a user dependent or system wide configuration file.

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.

 

OPTIONS

-h
print usage message,

select
select files from list of files.

 

ENVIRONMENT

$APPROOT
root directory of the application as resolved by approot(3). This variable can be used in the log files configuration files to point to the root of the WA2L/edrc installation. Therefore for example the ~edrc/var/log/edrc.log definition can be replaced with $APPROOT/var/log/edrc.log with the result that logview also lists the logfile when no edrc user is defined on the system.

 

EXIT STATUS

0
no error.

4
usage message printed.

 

FILES

$HOME/.log_files
definition of files to be listed in the selection. Only the root user should list the files in this config file.

$HOME/.mylog_files
definition of files to be listed in the selection. For non-root users, this file should be used to define the log files instead of .log_files due to the preservation of .my* files when using the mkuser(3) and/or makeuser(3) commands.

etc/log_files.cfg
system wide definition of log files. This file is read when the files $HOME/.log_files and $HOME/.mylog_files do not exist.

etc/exrc
settings for the view read only editor.

 

EXAMPLES

1) common usage

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)
  ~
  ~

 

SEE ALSO

edrcintro(1), logtail(1), log_files.cfg(4), tail(1), tpl(1)

 

NOTES

-

 

BUGS

-

 

AUTHOR

logview was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2021 Christian Walther

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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 21:25:23 GMT, August 29, 2024