1AnyData::Format::WeblogU(s3e)r Contributed Perl DocumentaAtniyoDnata::Format::Weblog(3)
2
3
4

NAME

6       AnyData::Format::Weblog - tiedhash & DBI/SQL access to HTTPD Logs
7

SYNOPSIS

9        use AnyData;
10        my $weblog = adTie( 'Weblog', $filename );
11        while (my $hit = each %$weblog) {
12           print $hit->{remotehost},"\n" if $hit->{request} =~ /mypage.html/;
13        }
14        # ... other tied hash operations
15
16        OR
17
18        use DBI
19        my $dbh = DBI->connect('dbi:AnyData:');
20        $dbh->func('hits','Weblog','access_log','ad_catalog');
21        my $hits = $dbh->selectall_arrayref( qq{
22            SELECT remotehost FROM hits WHERE request LIKE '%mypage.html%'
23        });
24        # ... other DBI/SQL read operations
25

DESCRIPTION

27       This is a plug-in format parser for the AnyData and DBD::AnyData
28       modules. You can gain read access to Common Log Format files web server
29       log files (e.g. NCSA or Apache) either through tied hashes or arrays or
30       through SQL database queries.
31
32       Fieldnames are taken from the W3 definitions found at
33
34       http://www.w3.org/Daemon/User/Config/Logging.html#common-logfile-format
35
36        remotehost
37        usernname
38        authuser
39        date
40        request
41        status
42        bytes
43
44       In addition, two extra fields that may be present in extended format
45       logfiles are:
46
47        referer
48        client
49
50       This module does not currently support writing to weblog files.
51
52       Please refer to the documentation for AnyData.pm and DBD::AnyData.pm
53       for further details.
54
56       copyright 2000, Jeff Zucker <jeff@vpservices.com> all rights reserved
57
58
59
60perl v5.34.0                      2021-07-22        AnyData::Format::Weblog(3)
Impressum