SECTCP home | Easy400 | System i home
Freeware
 
Introduction
FTP settings
TELNET settings
Securing TELNET
Logging
HTTP logs
 
Download
 
 

 
previous page page 10 out of 11 next page
HTTP logs (1/2)

Through SECTCP you may also collect and display the access and error logs of an HTTP instance of your choice. It could be either an Original or an Apache HTTP instance (log stream files from an Apache HTTP instance are automatically converted to Original HTTP logs).
The access logs are filtered: log entries - regarding access to style sheets and graphic items (such as GIF's, JPEG's etc.) or regarding accesses performed by search engine robots - are disregarded, so that only the real user transactions are reported.

The Apache access log mapping must be declared through an Apache directive similar or compatible with this one:
LogFormat "%h %l %u %t \"%r\" %>s %b" common

The command used to collect the HTTP log (Original or Apache) is
sectcp/cvthttplog

This command allows to collect all the daily HTTP logs not yet collected.

Notes:

  • This command is implicitely run when you take an option from the screen in Figure 29
  • If you want to be faster when taking an option from the screen in Figure 29, you may add the following scheduled job entry:
    ADDJOBSCDE JOB(CVTHTTPLOG) CMD(SECTCP/CVTHTTPLOG DAYS(*ALL))
       FRQ(*WEEKLY) SCDDATE(*NONE) SCDDAY(*ALL) SCDTIME(083000)

The following tells how you can process and display the HTTP logs.

Go to the screen "Display logs" in Figure 11 and take Option 1 (HTTP Web log) or Option 2 (Http Error log).
The two options are very similar, so let us assume that you selected Option 1 (HTTP Web log).

The following screen is displayed:
Figure 26 - Defining the HTTP log source

If the HTTP instance you care for is an Original HTTP instance, enter *NO in the first input field, leave all the other fields empty, and press the Enter key.

If it is an Apache HTTP instance, then

  • In the first input field enter *YES
  • In "path to the Apache HTTP logs" enter the IFS path of the directory containing both the access and the error log.
  • in "name of the HTTP access log" enter the initial part of the name of the access log stream files (the part up to and excluding the date qualifier .Q1yymmddnn )
  • in "name of the HTTP error log" enter the initial part of the name of the error log stream files (up to and excluding the date qualifier .Q1yymmddnn )
See the example in the following figure:
Figure 27 - Example of defining the HTTP log source
As soon as you press the Enter key, you are displayed a screen requesting to specify the name of a multimember database file in library SECTCPDATA. This file for each day will have a member containing the converted access log of that day.
If the file named by you does not yet exist, it is automatically created in library SECTCPDATA.
New members are created automatically as needed. Members older than one month are automatically deleted.
Figure 28 - Example of name for the converted access log

(press next page to continue)

previous page next page
    Contact