space
Previous Page | Next Page

Analyzing the Server Log

Customizing Server Log Analysis Programs

SLTOOL0.SAS is a sample driver program that you can use to automate the execution of your set of programs at the same time. Alternatively, you can run them individually in consecutive order. For example:

FILENAME INLOG 'TESTLOG.LOG';
LIBNAME  SLOGDATA 'SLOGDATA';
%INCLUDE(SLTOOLM); 
%INCLUDE(SLTOOL1);
%INCLUDE(SLTOOL2);
%INCLUDE(SLTOOL3);
%INCLUDE(SLTOOL4);

The first line associates the fileref INLOG with an operating environment-specific name for a file that contains the server log. In this example, 'TESTLOG.LOG' is the name of the file in a UNIX operating environment that contains the server log. In the second line, the LIBNAME statement associates the libref SLOGDATA with the operating environment-specific SAS library 'SLOGDATA'. The first two lines identify the external file as input and specify a SAS library to write SAS data files to.

The remaining lines in the driver program are INCLUDE macro statements in SAS, which read and execute each named program consecutively.

Modify the FILENAME and LIBNAME statements in SLTOOL0.SAS to specify your server's log and the repository for the SAS data files, respectively.

SLTOOLM.SAS, SLTOOL1.SAS, and SLTOOL2.SAS do not require modification. They can be run as provided to produce SAS data files that contain information about the server's session. Those data files are the input to the analysis phase, which is performed by the programs in SLTOOL3.SAS and SLTOOL4.SAS.

Usually, you customize the SLTOOL3.SAS and SLTOOL4.SAS programs to produce the analyses of your server that are most relevant to your needs.

space
Previous Page | Next Page | Top of Page