DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using EELS

Customizing dynamic log importing

EELS can automatically import records from proprietary log files when those log files grow by a given amount.

The configuration information for dynamic log import is contained in a dynamic-import parameter block. An example of a dynamic-import parameter block is shown below:

   dynamic-import netscape {
      filename  /usr/ns-home/httpd-80/logs/access;
      filter    /etc/eels/scripts/process_access_file;
      growth    10K;
   }
How the various elements work together to dynamically import files is shown in the figure below.

Dynamic log importing overview

To add a dynamic-import parameter block to eels_config(4eels):

  1. Log in as root

  2. Add the following lines to the bottom of /etc/default/eels:
       dynamic-import netscape {
          filename  /usr/ns-home/httpd-80/logs/access;
          filter    /etc/eels/scripts/process_access_file;
          growth    10K;
       }
    
    This parameter block states that whenever the log file /usr/ns-home/httpd-80/logs/access grows by more than 10 kilobytes, /etc/eels/scripts/process_access_file will be run to import the records from the log file into the EELS database.

  3. Save /etc/default/eels.

  4. Restart EELS for the changes to take effect.
For more information on how to create a log import script, see ``Importing external log files''.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004