request-log-analyzer 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/LICENSE +1 -1
- data/README.rdoc +19 -24
- data/bin/request-log-analyzer +10 -7
- data/lib/request_log_analyzer/aggregator/summarizer.rb +13 -2
- data/lib/request_log_analyzer/controller.rb +68 -36
- data/lib/request_log_analyzer/file_format/apache.rb +1 -1
- data/lib/request_log_analyzer/file_format/mysql.rb +93 -0
- data/lib/request_log_analyzer/file_format/rails_development.rb +1 -1
- data/lib/request_log_analyzer/file_format.rb +46 -2
- data/lib/request_log_analyzer/mailer.rb +25 -12
- data/lib/request_log_analyzer/output/fixed_width.rb +1 -1
- data/lib/request_log_analyzer/output/html.rb +2 -0
- data/lib/request_log_analyzer/request.rb +5 -0
- data/lib/request_log_analyzer/source/log_parser.rb +33 -10
- data/lib/request_log_analyzer/tracker/count.rb +93 -0
- data/lib/request_log_analyzer.rb +1 -1
- data/request-log-analyzer.gemspec +6 -6
- data/spec/fixtures/mysql_slow_query.log +110 -0
- data/spec/integration/command_line_usage_spec.rb +3 -3
- data/spec/integration/mailer_spec.rb +179 -0
- data/spec/integration/munin_plugins_rails_spec.rb +58 -0
- data/spec/integration/scout_spec.rb +152 -0
- data/spec/lib/helpers.rb +26 -1
- data/spec/lib/mocks.rb +3 -1
- data/spec/unit/file_format/apache_format_spec.rb +102 -95
- data/spec/unit/file_format/format_autodetection_spec.rb +35 -0
- data/spec/unit/file_format/mysql_format_spec.rb +155 -0
- data/spec/unit/file_format/rails_format_spec.rb +9 -12
- data/spec/unit/mailer_spec.rb +12 -0
- data/spec/unit/tracker/count_tracker_spec.rb +123 -0
- data/spec/unit/tracker/tracker_api_spec.rb +1 -1
- metadata +125 -110
|
@@ -120,35 +120,32 @@ describe RequestLogAnalyzer::FileFormat::Rails do
|
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
it "should parse a Rails 2.1 style log and find valid Rails requests without warnings" do
|
|
123
|
+
request_counter.should_receive(:hit!).exactly(4).times
|
|
123
124
|
@log_parser.should_not_receive(:warn)
|
|
125
|
+
|
|
124
126
|
@log_parser.parse_file(log_fixture(:rails_1x)) do |request|
|
|
125
|
-
request.
|
|
126
|
-
request.should be_completed
|
|
127
|
+
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails::Request) && request.completed?
|
|
127
128
|
end
|
|
128
129
|
end
|
|
129
130
|
|
|
130
131
|
it "should parse a Rails 2.2 style log and find valid Rails requests without warnings" do
|
|
132
|
+
request_counter.should_receive(:hit!).once
|
|
131
133
|
@log_parser.should_not_receive(:warn)
|
|
134
|
+
|
|
132
135
|
@log_parser.parse_file(log_fixture(:rails_22)) do |request|
|
|
133
|
-
request.
|
|
134
|
-
request.should be_completed
|
|
136
|
+
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails::Request) && request.completed?
|
|
135
137
|
end
|
|
136
138
|
end
|
|
137
139
|
|
|
138
140
|
it "should parse a Rails SyslogLogger file with prefix and find valid requests without warnings" do
|
|
141
|
+
request_counter.should_receive(:hit!).once
|
|
139
142
|
@log_parser.should_not_receive(:warn)
|
|
143
|
+
|
|
140
144
|
@log_parser.parse_file(log_fixture(:syslog_1x)) do |request|
|
|
141
|
-
request.
|
|
142
|
-
request.should be_completed
|
|
145
|
+
request_counter.hit! if request.kind_of?(RequestLogAnalyzer::FileFormat::Rails::Request) && request.completed?
|
|
143
146
|
end
|
|
144
147
|
end
|
|
145
148
|
|
|
146
|
-
it "should find 4 completed requests" do
|
|
147
|
-
@log_parser.should_not_receive(:warn)
|
|
148
|
-
@log_parser.should_receive(:handle_request).exactly(4).times
|
|
149
|
-
@log_parser.parse_file(log_fixture(:rails_1x))
|
|
150
|
-
end
|
|
151
|
-
|
|
152
149
|
it "should parse cached requests" do
|
|
153
150
|
@log_parser.should_not_receive(:warn)
|
|
154
151
|
@log_parser.parse_file(log_fixture(:rails_22_cached)) do |request|
|
data/spec/unit/mailer_spec.rb
CHANGED
|
@@ -2,6 +2,18 @@ require File.dirname(__FILE__) + '/../spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe RequestLogAnalyzer::Mailer, 'mailer' do
|
|
4
4
|
|
|
5
|
+
it "should initialize correctly" do
|
|
6
|
+
@mailer = RequestLogAnalyzer::Mailer.new('alfa@beta.com', 'localhost', :debug => true)
|
|
7
|
+
@mailer.host.should eql("localhost")
|
|
8
|
+
@mailer.port.should eql(25)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "should allow alternate port settings" do
|
|
12
|
+
@mailer = RequestLogAnalyzer::Mailer.new('alfa@beta.com', 'localhost:2525', :debug => true)
|
|
13
|
+
@mailer.host.should eql("localhost")
|
|
14
|
+
@mailer.port.should eql("2525")
|
|
15
|
+
end
|
|
16
|
+
|
|
5
17
|
it "should store printed data" do
|
|
6
18
|
@mailer = RequestLogAnalyzer::Mailer.new('alfa@beta.com', 'localhost', :debug => true)
|
|
7
19
|
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
2
|
+
|
|
3
|
+
describe RequestLogAnalyzer::Tracker::Count do
|
|
4
|
+
|
|
5
|
+
context 'static category' do
|
|
6
|
+
before(:each) do
|
|
7
|
+
@tracker = RequestLogAnalyzer::Tracker::Count.new(:category => :category, :field => :blah)
|
|
8
|
+
@tracker.prepare
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
it "should register a request in the right category" do
|
|
12
|
+
@tracker.update(request(:category => 'a', :blah => 2))
|
|
13
|
+
@tracker.categories.should include('a')
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
it "should register requests in the right category" do
|
|
17
|
+
@tracker.update(request(:category => 'a', :blah => 2))
|
|
18
|
+
@tracker.update(request(:category => 'b', :blah => 2))
|
|
19
|
+
@tracker.update(request(:category => 'b', :blah => 2))
|
|
20
|
+
|
|
21
|
+
@tracker.categories['a'][:sum].should == 2
|
|
22
|
+
@tracker.categories['b'][:sum].should == 4
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
context 'dynamic category' do
|
|
28
|
+
before(:each) do
|
|
29
|
+
@categorizer = Proc.new { |request| request[:duration] > 0.2 ? 'slow' : 'fast' }
|
|
30
|
+
@tracker = RequestLogAnalyzer::Tracker::Count.new(:category => @categorizer, :field => :blah)
|
|
31
|
+
@tracker.prepare
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
it "should use the categorizer to determine the right category" do
|
|
35
|
+
@tracker.update(request(:category => 'a', :duration => 0.2, :blah => 2))
|
|
36
|
+
@tracker.update(request(:category => 'b', :duration => 0.3, :blah => 2))
|
|
37
|
+
@tracker.update(request(:category => 'b', :duration => 0.4, :blah => 2))
|
|
38
|
+
|
|
39
|
+
@tracker.categories['fast'][:sum].should == 2
|
|
40
|
+
@tracker.categories['slow'][:sum].should == 4
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe '#report' do
|
|
45
|
+
before(:each) do
|
|
46
|
+
@tracker = RequestLogAnalyzer::Tracker::Count.new(:category => :category, :field => :blah)
|
|
47
|
+
@tracker.prepare
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
it "should generate a report without errors when one category is present" do
|
|
51
|
+
@tracker.update(request(:category => 'a', :blah => 2))
|
|
52
|
+
lambda { @tracker.report(mock_output) }.should_not raise_error
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
it "should generate a report without errors when no category is present" do
|
|
56
|
+
lambda { @tracker.report(mock_output) }.should_not raise_error
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it "should generate a report without errors when multiple categories are present" do
|
|
60
|
+
@tracker.update(request(:category => 'a', :blah => 2))
|
|
61
|
+
@tracker.update(request(:category => 'b', :blah => 2))
|
|
62
|
+
lambda { @tracker.report(mock_output) }.should_not raise_error
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
describe '#to_yaml_object' do
|
|
67
|
+
before(:each) do
|
|
68
|
+
@tracker = RequestLogAnalyzer::Tracker::Count.new(:category => :category, :field => :blah)
|
|
69
|
+
@tracker.prepare
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
it "should generate a YAML output" do
|
|
73
|
+
@tracker.update(request(:category => 'a', :blah => 2))
|
|
74
|
+
@tracker.update(request(:category => 'b', :blah => 3))
|
|
75
|
+
@tracker.to_yaml_object.should == {"a"=>{:min=>2, :hits=>1, :max=>2, :mean=>2.0, :sum=>2, :sum_of_squares=>0.0}, "b"=>{:min=>3, :hits=>1, :max=>3, :mean=>3.0, :sum=>3, :sum_of_squares=>0.0}}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
describe '#display_value' do
|
|
80
|
+
before(:each) do
|
|
81
|
+
@tracker = RequestLogAnalyzer::Tracker::Count.new(:category => :category, :field => :blah)
|
|
82
|
+
@tracker.prepare
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
it "should not crash on nil" do
|
|
86
|
+
lambda { @tracker.display_value(nil) }.should_not raise_error
|
|
87
|
+
@tracker.display_value(nil).should_not be_nil
|
|
88
|
+
@tracker.display_value(nil).should_not eql("")
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
it "should not touch thousands" do
|
|
92
|
+
@tracker.display_value(1000).should eql('1000 ')
|
|
93
|
+
@tracker.display_value(5000).should eql('5000 ')
|
|
94
|
+
@tracker.display_value(9001).should eql('9001 ')
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
it "should reduce milions to thousands (k)" do
|
|
98
|
+
@tracker.display_value(1000_000).should eql('1000k')
|
|
99
|
+
@tracker.display_value(5000_000).should eql('5000k')
|
|
100
|
+
@tracker.display_value(9000_001).should eql('9000k')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
it "should reduce giga to millons (M)" do
|
|
104
|
+
@tracker.display_value(1000_000_000).should eql('1000M')
|
|
105
|
+
@tracker.display_value(5000_000_000).should eql('5000M')
|
|
106
|
+
@tracker.display_value(9000_000_001).should eql('9000M')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
it "should reduce teras to gigas (G)" do
|
|
110
|
+
@tracker.display_value(1000_000_000_000).should eql('1000G')
|
|
111
|
+
@tracker.display_value(5000_000_000_000).should eql('5000G')
|
|
112
|
+
@tracker.display_value(9000_000_001_001).should eql('9000G')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
it "should reduce petas to teras (T)" do
|
|
116
|
+
@tracker.display_value(1000_000_000_000_000).should eql('1000T')
|
|
117
|
+
@tracker.display_value(5000_000_000_000_000).should eql('5000T')
|
|
118
|
+
@tracker.display_value(9000_000_001_001_000).should eql('9000T')
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
end
|
|
@@ -116,7 +116,7 @@ describe RequestLogAnalyzer::Tracker::Base do
|
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
it "should receive :to_yaml object when finalizing" do
|
|
119
|
-
@summarizer.options[:
|
|
119
|
+
@summarizer.options[:yaml] = temp_output_file(:yaml)
|
|
120
120
|
@tracker.should_receive(:to_yaml_object).once
|
|
121
121
|
@summarizer.to_yaml
|
|
122
122
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: request-log-analyzer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Willem van Bergen
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2009-
|
|
13
|
+
date: 2009-11-18 00:00:00 +01:00
|
|
14
14
|
default_executable: request-log-analyzer
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -44,115 +44,124 @@ extensions: []
|
|
|
44
44
|
extra_rdoc_files:
|
|
45
45
|
- README.rdoc
|
|
46
46
|
files:
|
|
47
|
-
- spec/unit/filter/anonymize_filter_spec.rb
|
|
48
|
-
- spec/fixtures/rails_22_cached.log
|
|
49
|
-
- lib/request_log_analyzer/line_definition.rb
|
|
50
47
|
- lib/request_log_analyzer/output/html.rb
|
|
51
|
-
-
|
|
52
|
-
-
|
|
48
|
+
- spec/unit/tracker/hourly_spread_spec.rb
|
|
49
|
+
- DESIGN.rdoc
|
|
50
|
+
- spec/fixtures/rails_unordered.log
|
|
51
|
+
- spec/fixtures/multiple_files_1.log
|
|
52
|
+
- lib/request_log_analyzer/database/source.rb
|
|
53
|
+
- README.rdoc
|
|
54
|
+
- spec/unit/file_format/amazon_s3_format_spec.rb
|
|
53
55
|
- lib/request_log_analyzer/file_format/rails_development.rb
|
|
54
|
-
- spec/fixtures/
|
|
55
|
-
- spec/fixtures/
|
|
56
|
-
- spec/
|
|
57
|
-
- lib/request_log_analyzer/
|
|
58
|
-
-
|
|
59
|
-
- spec/
|
|
60
|
-
-
|
|
61
|
-
- spec/
|
|
62
|
-
- lib/request_log_analyzer/
|
|
56
|
+
- spec/fixtures/rails_22.log
|
|
57
|
+
- spec/fixtures/test_order.log
|
|
58
|
+
- spec/unit/database/base_class_spec.rb
|
|
59
|
+
- lib/request_log_analyzer/database/connection.rb
|
|
60
|
+
- lib/request_log_analyzer/aggregator.rb
|
|
61
|
+
- spec/fixtures/decompression.log
|
|
62
|
+
- lib/request_log_analyzer/file_format/apache.rb
|
|
63
|
+
- spec/fixtures/decompression.log.gz
|
|
64
|
+
- lib/request_log_analyzer/tracker/frequency.rb
|
|
65
|
+
- lib/request_log_analyzer/tracker/duration.rb
|
|
66
|
+
- tasks/github-gem.rake
|
|
67
|
+
- .gitignore
|
|
68
|
+
- spec/unit/filter/filter_spec.rb
|
|
69
|
+
- spec/lib/macros.rb
|
|
70
|
+
- spec/spec_helper.rb
|
|
71
|
+
- spec/unit/tracker/count_tracker_spec.rb
|
|
63
72
|
- spec/fixtures/decompression.log.bz2
|
|
64
|
-
- spec/
|
|
65
|
-
- lib/request_log_analyzer/log_processor.rb
|
|
66
|
-
- lib/request_log_analyzer/tracker.rb
|
|
73
|
+
- spec/unit/database/connection_spec.rb
|
|
67
74
|
- lib/request_log_analyzer/filter.rb
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
75
|
+
- spec/integration/scout_spec.rb
|
|
76
|
+
- spec/fixtures/test_file_format.log
|
|
77
|
+
- lib/request_log_analyzer/tracker/traffic.rb
|
|
78
|
+
- spec/unit/file_format/merb_format_spec.rb
|
|
79
|
+
- spec/unit/file_format/format_autodetection_spec.rb
|
|
71
80
|
- spec/unit/filter/timespan_filter_spec.rb
|
|
72
|
-
- spec/unit/
|
|
73
|
-
- spec/lib/matchers.rb
|
|
81
|
+
- spec/unit/file_format/file_format_api_spec.rb
|
|
74
82
|
- lib/request_log_analyzer/filter/field.rb
|
|
75
|
-
- lib/request_log_analyzer/
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
79
|
-
- spec/
|
|
83
|
+
- lib/request_log_analyzer/file_format/merb.rb
|
|
84
|
+
- lib/request_log_analyzer/filter/anonymize.rb
|
|
85
|
+
- lib/request_log_analyzer/file_format/amazon_s3.rb
|
|
86
|
+
- lib/cli/database_console.rb
|
|
87
|
+
- spec/integration/mailer_spec.rb
|
|
88
|
+
- lib/request_log_analyzer/line_definition.rb
|
|
89
|
+
- spec/unit/tracker/frequency_tracker_spec.rb
|
|
90
|
+
- spec/fixtures/multiple_files_2.log
|
|
91
|
+
- spec/lib/mocks.rb
|
|
92
|
+
- spec/unit/file_format/apache_format_spec.rb
|
|
93
|
+
- spec/fixtures/syslog_1x.log
|
|
94
|
+
- spec/integration/munin_plugins_rails_spec.rb
|
|
95
|
+
- spec/lib/helpers.rb
|
|
80
96
|
- spec/fixtures/rails.db
|
|
97
|
+
- spec/unit/source/log_parser_spec.rb
|
|
98
|
+
- lib/request_log_analyzer/aggregator/database_inserter.rb
|
|
99
|
+
- spec/fixtures/header_and_footer.log
|
|
100
|
+
- spec/lib/testing_format.rb
|
|
101
|
+
- lib/request_log_analyzer/database.rb
|
|
102
|
+
- spec/unit/file_format/rails_format_spec.rb
|
|
103
|
+
- lib/request_log_analyzer/request.rb
|
|
81
104
|
- lib/request_log_analyzer/output/fixed_width.rb
|
|
82
|
-
-
|
|
83
|
-
- lib/request_log_analyzer/
|
|
84
|
-
-
|
|
85
|
-
- lib/
|
|
105
|
+
- spec/integration/command_line_usage_spec.rb
|
|
106
|
+
- lib/request_log_analyzer/file_format/rack.rb
|
|
107
|
+
- spec/fixtures/test_language_combined.log
|
|
108
|
+
- lib/cli/command_line_arguments.rb
|
|
109
|
+
- lib/request_log_analyzer.rb
|
|
110
|
+
- spec/database.yml
|
|
86
111
|
- spec/unit/request_spec.rb
|
|
112
|
+
- lib/request_log_analyzer/database/base.rb
|
|
113
|
+
- spec/unit/aggregator/database_inserter_spec.rb
|
|
114
|
+
- lib/request_log_analyzer/database/request.rb
|
|
115
|
+
- lib/cli/database_console_init.rb
|
|
87
116
|
- lib/cli/progressbar.rb
|
|
88
|
-
- lib/request_log_analyzer/mailer.rb
|
|
89
|
-
- README.rdoc
|
|
90
117
|
- lib/request_log_analyzer/database/warning.rb
|
|
91
|
-
- spec/
|
|
92
|
-
-
|
|
93
|
-
- .
|
|
94
|
-
- spec/unit/tracker/tracker_api_spec.rb
|
|
95
|
-
- spec/unit/tracker/duration_tracker_spec.rb
|
|
96
|
-
- spec/unit/file_format/amazon_s3_format_spec.rb
|
|
97
|
-
- lib/request_log_analyzer/aggregator/echo.rb
|
|
98
|
-
- spec/unit/mailer_spec.rb
|
|
99
|
-
- spec/unit/controller/log_processor_spec.rb
|
|
100
|
-
- spec/spec_helper.rb
|
|
101
|
-
- lib/request_log_analyzer.rb
|
|
102
|
-
- spec/database.yml
|
|
103
|
-
- Rakefile
|
|
104
|
-
- lib/request_log_analyzer/database/connection.rb
|
|
105
|
-
- spec/unit/filter/filter_spec.rb
|
|
106
|
-
- spec/fixtures/test_language_combined.log
|
|
107
|
-
- lib/request_log_analyzer/aggregator/database_inserter.rb
|
|
118
|
+
- spec/unit/filter/anonymize_filter_spec.rb
|
|
119
|
+
- spec/fixtures/apache_combined.log
|
|
120
|
+
- spec/fixtures/rails_22_cached.log
|
|
108
121
|
- lib/request_log_analyzer/aggregator/summarizer.rb
|
|
109
|
-
-
|
|
110
|
-
-
|
|
122
|
+
- spec/unit/tracker/duration_tracker_spec.rb
|
|
123
|
+
- spec/fixtures/rails_1x.log
|
|
124
|
+
- lib/request_log_analyzer/tracker/count.rb
|
|
125
|
+
- lib/request_log_analyzer/output.rb
|
|
126
|
+
- spec/unit/file_format/line_definition_spec.rb
|
|
127
|
+
- lib/request_log_analyzer/file_format/mysql.rb
|
|
128
|
+
- spec/unit/file_format/mysql_format_spec.rb
|
|
129
|
+
- request-log-analyzer.gemspec
|
|
130
|
+
- spec/fixtures/apache_common.log
|
|
111
131
|
- lib/request_log_analyzer/file_format/rails.rb
|
|
112
|
-
-
|
|
132
|
+
- Rakefile
|
|
133
|
+
- spec/unit/mailer_spec.rb
|
|
134
|
+
- lib/request_log_analyzer/tracker/hourly_spread.rb
|
|
135
|
+
- spec/unit/aggregator/summarizer_spec.rb
|
|
113
136
|
- spec/unit/tracker/traffic_tracker_spec.rb
|
|
137
|
+
- lib/request_log_analyzer/tracker/timespan.rb
|
|
138
|
+
- spec/unit/controller/log_processor_spec.rb
|
|
114
139
|
- spec/unit/filter/field_filter_spec.rb
|
|
115
|
-
- spec/
|
|
140
|
+
- spec/fixtures/merb_prefixed.log
|
|
141
|
+
- lib/request_log_analyzer/log_processor.rb
|
|
116
142
|
- lib/request_log_analyzer/filter/timespan.rb
|
|
117
|
-
- lib/request_log_analyzer/source/log_parser.rb
|
|
118
|
-
- spec/fixtures/decompression.tgz
|
|
119
|
-
- spec/unit/tracker/timespan_tracker_spec.rb
|
|
120
|
-
- spec/unit/tracker/hourly_spread_spec.rb
|
|
121
|
-
- spec/fixtures/header_and_footer.log
|
|
122
|
-
- lib/cli/tools.rb
|
|
123
|
-
- lib/request_log_analyzer/file_format/merb.rb
|
|
124
|
-
- spec/fixtures/multiple_files_1.log
|
|
125
|
-
- spec/unit/file_format/merb_format_spec.rb
|
|
126
|
-
- spec/unit/file_format/line_definition_spec.rb
|
|
127
|
-
- lib/request_log_analyzer/source.rb
|
|
128
|
-
- lib/request_log_analyzer/request.rb
|
|
129
|
-
- lib/cli/database_console.rb
|
|
130
|
-
- spec/unit/database/connection_spec.rb
|
|
131
143
|
- spec/unit/controller/controller_spec.rb
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
- spec/fixtures/
|
|
135
|
-
-
|
|
136
|
-
- lib/
|
|
137
|
-
- lib/request_log_analyzer/
|
|
138
|
-
- spec/
|
|
139
|
-
- spec/unit/source/log_parser_spec.rb
|
|
140
|
-
- spec/fixtures/test_file_format.log
|
|
141
|
-
- tasks/github-gem.rake
|
|
142
|
-
- spec/unit/database/database_spec.rb
|
|
143
|
-
- lib/request_log_analyzer/tracker/duration.rb
|
|
144
|
-
- lib/request_log_analyzer/tracker/traffic.rb
|
|
145
|
-
- lib/request_log_analyzer/file_format.rb
|
|
146
|
-
- spec/unit/aggregator/summarizer_spec.rb
|
|
147
|
-
- spec/fixtures/syslog_1x.log
|
|
148
|
-
- spec/fixtures/rails_22.log
|
|
149
|
-
- lib/request_log_analyzer/database/request.rb
|
|
150
|
-
- spec/fixtures/multiple_files_2.log
|
|
151
|
-
- LICENSE
|
|
144
|
+
- lib/request_log_analyzer/mailer.rb
|
|
145
|
+
- lib/cli/tools.rb
|
|
146
|
+
- spec/fixtures/decompression.tar.gz
|
|
147
|
+
- spec/unit/tracker/timespan_tracker_spec.rb
|
|
148
|
+
- spec/lib/matchers.rb
|
|
149
|
+
- lib/request_log_analyzer/controller.rb
|
|
150
|
+
- spec/unit/tracker/tracker_api_spec.rb
|
|
152
151
|
- lib/request_log_analyzer/source/database_loader.rb
|
|
153
|
-
- spec/
|
|
154
|
-
-
|
|
155
|
-
- lib/
|
|
152
|
+
- spec/fixtures/merb.log
|
|
153
|
+
- LICENSE
|
|
154
|
+
- lib/request_log_analyzer/file_format.rb
|
|
155
|
+
- tasks/request_log_analyzer.rake
|
|
156
|
+
- spec/unit/database/database_spec.rb
|
|
157
|
+
- spec/fixtures/decompression.log.zip
|
|
158
|
+
- spec/fixtures/decompression.tgz
|
|
159
|
+
- bin/request-log-analyzer
|
|
160
|
+
- lib/request_log_analyzer/tracker.rb
|
|
161
|
+
- lib/request_log_analyzer/source.rb
|
|
162
|
+
- spec/fixtures/mysql_slow_query.log
|
|
163
|
+
- lib/request_log_analyzer/source/log_parser.rb
|
|
164
|
+
- lib/request_log_analyzer/aggregator/echo.rb
|
|
156
165
|
has_rdoc: true
|
|
157
166
|
homepage: http://railsdoctors.com
|
|
158
167
|
licenses: []
|
|
@@ -187,30 +196,36 @@ signing_key:
|
|
|
187
196
|
specification_version: 3
|
|
188
197
|
summary: A command line tool to analyze request logs for Apache, Rails, Merb and other web application servers
|
|
189
198
|
test_files:
|
|
190
|
-
- spec/unit/
|
|
199
|
+
- spec/unit/tracker/hourly_spread_spec.rb
|
|
200
|
+
- spec/unit/file_format/amazon_s3_format_spec.rb
|
|
201
|
+
- spec/unit/database/base_class_spec.rb
|
|
202
|
+
- spec/unit/filter/filter_spec.rb
|
|
203
|
+
- spec/unit/tracker/count_tracker_spec.rb
|
|
204
|
+
- spec/unit/database/connection_spec.rb
|
|
205
|
+
- spec/integration/scout_spec.rb
|
|
206
|
+
- spec/unit/file_format/merb_format_spec.rb
|
|
207
|
+
- spec/unit/file_format/format_autodetection_spec.rb
|
|
208
|
+
- spec/unit/filter/timespan_filter_spec.rb
|
|
191
209
|
- spec/unit/file_format/file_format_api_spec.rb
|
|
210
|
+
- spec/integration/mailer_spec.rb
|
|
211
|
+
- spec/unit/tracker/frequency_tracker_spec.rb
|
|
192
212
|
- spec/unit/file_format/apache_format_spec.rb
|
|
213
|
+
- spec/integration/munin_plugins_rails_spec.rb
|
|
214
|
+
- spec/unit/source/log_parser_spec.rb
|
|
215
|
+
- spec/unit/file_format/rails_format_spec.rb
|
|
193
216
|
- spec/integration/command_line_usage_spec.rb
|
|
194
|
-
- spec/unit/filter/timespan_filter_spec.rb
|
|
195
|
-
- spec/unit/aggregator/database_inserter_spec.rb
|
|
196
217
|
- spec/unit/request_spec.rb
|
|
197
|
-
- spec/unit/
|
|
218
|
+
- spec/unit/aggregator/database_inserter_spec.rb
|
|
219
|
+
- spec/unit/filter/anonymize_filter_spec.rb
|
|
198
220
|
- spec/unit/tracker/duration_tracker_spec.rb
|
|
199
|
-
- spec/unit/file_format/
|
|
221
|
+
- spec/unit/file_format/line_definition_spec.rb
|
|
222
|
+
- spec/unit/file_format/mysql_format_spec.rb
|
|
200
223
|
- spec/unit/mailer_spec.rb
|
|
201
|
-
- spec/unit/
|
|
202
|
-
- spec/unit/filter/filter_spec.rb
|
|
224
|
+
- spec/unit/aggregator/summarizer_spec.rb
|
|
203
225
|
- spec/unit/tracker/traffic_tracker_spec.rb
|
|
226
|
+
- spec/unit/controller/log_processor_spec.rb
|
|
204
227
|
- spec/unit/filter/field_filter_spec.rb
|
|
205
|
-
- spec/unit/database/base_class_spec.rb
|
|
206
|
-
- spec/unit/tracker/timespan_tracker_spec.rb
|
|
207
|
-
- spec/unit/tracker/hourly_spread_spec.rb
|
|
208
|
-
- spec/unit/file_format/merb_format_spec.rb
|
|
209
|
-
- spec/unit/file_format/line_definition_spec.rb
|
|
210
|
-
- spec/unit/database/connection_spec.rb
|
|
211
228
|
- spec/unit/controller/controller_spec.rb
|
|
212
|
-
- spec/unit/
|
|
229
|
+
- spec/unit/tracker/timespan_tracker_spec.rb
|
|
230
|
+
- spec/unit/tracker/tracker_api_spec.rb
|
|
213
231
|
- spec/unit/database/database_spec.rb
|
|
214
|
-
- spec/unit/aggregator/summarizer_spec.rb
|
|
215
|
-
- spec/unit/tracker/frequency_tracker_spec.rb
|
|
216
|
-
- spec/unit/file_format/rails_format_spec.rb
|