1Fsdb::Filter::combined_Ulsoegr_fCoornmtarti_btuot_eFddsbd(Pb3e:)r:lFiDlotceurm:e:nctoamtbiionned_log_format_to_db(3)
2
3
4
6 combined_log_format_to_db - convert Apache Combined Log Format to Fsdb
7
9 combined_log_format_to_db < access_log > access_log.fsdb
10
12 Converts logs in Apache Combined-Log-Format into Fsdb format.
13
15 No program-specific options.
16
17 This module also supports the standard fsdb options:
18
19 -d Enable debugging output.
20
21 -i or --input InputSource
22 Read from InputSource, typically a file name, or "-" for standard
23 input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
24 objects.
25
26 -o or --output OutputDestination
27 Write to OutputDestination, typically a file name, or "-" for
28 standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
29 Fsdb::BoundedQueue objects.
30
31 --autorun or --noautorun
32 By default, programs process automatically, but Fsdb::Filter
33 objects in Perl do not run until you invoke the run() method. The
34 "--(no)autorun" option controls that behavior within Perl.
35
36 --help
37 Show help.
38
39 --man
40 Show full manual.
41
43 Input:
44 foo.example.com - - [01/Jan/2007:00:00:01 -0800] "GET /~moll/wedding/index.html HTTP/1.0" 200 2390 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
45 127.0.0.1 - - [01/Jan/2007:00:00:02 -0800] "GET /hpdc2007/ HTTP/1.1" 304 - "http://grid.hust.edu.cn:8080/call/cfp.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; InfoPath.2)"
46 bar.example.com - - [31/Dec/2006:23:51:40 -0800] "GET /nsnam/dist/ns-allinone-2.29.2.tar.gz HTTP/1.1" 206 58394090 "file://D:\\\xce\xd2\xb5\xc4\xce\xc4\xb5\xb5\\ns2\\XP_Using_Cygwin.htm#Windows_Support_for_Ns-2.27_and_Earlier" "Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)"
47 127.0.0.1 - - [01/Jan/2007:00:00:02 -0800] "GET /hpdc2007/hpdc.css HTTP/1.1" 304 - "http://www.isi.edu/hpdc2007/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; InfoPath.2)"
48
49 Command:
50 combined_log_format_to_db
51
52 Output:
53 #fsdb -F S client identity userid time method resource protocol status size refer useragent
54 foo.example.com - - [01/Jan/2007:00:00:01 -0800] GET /~moll/wedding/index.html HTTP/1.0 200 2390 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"
55 127.0.0.1 - - [01/Jan/2007:00:00:02 -0800] GET /hpdc2007/ HTTP/1.1 304 - "http://grid.hust.edu.cn:8080/call/cfp.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; InfoPath.2)"
56 bar.example.com - - [31/Dec/2006:23:51:40 -0800] GET /nsnam/dist/ns-allinone-2.29.2.tar.gz HTTP/1.1 206 58394090 "file://D:\\\xce\xd2\xb5\xc4\xce\xc4\xb5\xb5\\ns2\\XP_Using_Cygwin.htm#Windows_Support_for_Ns-2.27_and_Earlier" "Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)"
57 127.0.0.1 - - [01/Jan/2007:00:00:02 -0800] GET /hpdc2007/hpdc.css HTTP/1.1 304 - "http://www.isi.edu/hpdc2007/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; InfoPath.2)"
58 # | combined_log_format_to_db
59
61 Fsdb. <http://httpd.apache.org/docs/2.0/logs.html>
62
64 new
65 $filter = new Fsdb::Filter::combined_log_format_to_db(@arguments);
66
67 Create a new combined_log_format_to_db object, taking command-line
68 arguments.
69
70 set_defaults
71 $filter->set_defaults();
72
73 Internal: set up defaults.
74
75 parse_options
76 $filter->parse_options(@ARGV);
77
78 Internal: parse command-line arguments.
79
80 setup
81 $filter->setup();
82
83 Internal: setup, parse headers.
84
85 run
86 $filter->run();
87
88 Internal: run over each rows.
89
91 Copyright (C) 2008 by John Heidemann <johnh@isi.edu>
92
93 This program is distributed under terms of the GNU general public
94 license, version 2. See the file COPYING with the distribution for
95 details.
96
97
98
99perl v5.32.0 202F0s-d1b1:-:1F6ilter::combined_log_format_to_db(3)