request-log-analyzer 1.3.7 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +3 -3
- data/README.rdoc +1 -1
- data/bin/request-log-analyzer +17 -14
- data/lib/cli/command_line_arguments.rb +51 -51
- data/lib/cli/database_console.rb +3 -3
- data/lib/cli/database_console_init.rb +2 -2
- data/lib/cli/progressbar.rb +10 -10
- data/lib/cli/tools.rb +3 -3
- data/lib/request_log_analyzer.rb +4 -4
- data/lib/request_log_analyzer/aggregator.rb +10 -10
- data/lib/request_log_analyzer/aggregator/database_inserter.rb +9 -9
- data/lib/request_log_analyzer/aggregator/echo.rb +14 -9
- data/lib/request_log_analyzer/aggregator/summarizer.rb +26 -26
- data/lib/request_log_analyzer/controller.rb +153 -69
- data/lib/request_log_analyzer/database.rb +13 -13
- data/lib/request_log_analyzer/database/base.rb +17 -17
- data/lib/request_log_analyzer/database/connection.rb +3 -3
- data/lib/request_log_analyzer/database/request.rb +2 -2
- data/lib/request_log_analyzer/database/source.rb +1 -1
- data/lib/request_log_analyzer/file_format.rb +15 -15
- data/lib/request_log_analyzer/file_format/amazon_s3.rb +16 -16
- data/lib/request_log_analyzer/file_format/apache.rb +20 -19
- data/lib/request_log_analyzer/file_format/merb.rb +12 -12
- data/lib/request_log_analyzer/file_format/rack.rb +4 -4
- data/lib/request_log_analyzer/file_format/rails.rb +146 -70
- data/lib/request_log_analyzer/file_format/rails_development.rb +4 -49
- data/lib/request_log_analyzer/filter.rb +6 -6
- data/lib/request_log_analyzer/filter/anonymize.rb +6 -6
- data/lib/request_log_analyzer/filter/field.rb +9 -9
- data/lib/request_log_analyzer/filter/timespan.rb +12 -10
- data/lib/request_log_analyzer/line_definition.rb +15 -14
- data/lib/request_log_analyzer/log_processor.rb +22 -22
- data/lib/request_log_analyzer/mailer.rb +15 -9
- data/lib/request_log_analyzer/output.rb +53 -12
- data/lib/request_log_analyzer/output/fixed_width.rb +40 -41
- data/lib/request_log_analyzer/output/html.rb +20 -20
- data/lib/request_log_analyzer/request.rb +35 -36
- data/lib/request_log_analyzer/source.rb +7 -7
- data/lib/request_log_analyzer/source/database_loader.rb +7 -7
- data/lib/request_log_analyzer/source/log_parser.rb +48 -43
- data/lib/request_log_analyzer/tracker.rb +128 -14
- data/lib/request_log_analyzer/tracker/duration.rb +39 -132
- data/lib/request_log_analyzer/tracker/frequency.rb +31 -32
- data/lib/request_log_analyzer/tracker/hourly_spread.rb +20 -19
- data/lib/request_log_analyzer/tracker/timespan.rb +17 -17
- data/lib/request_log_analyzer/tracker/traffic.rb +36 -116
- data/request-log-analyzer.gemspec +19 -15
- data/spec/fixtures/rails_22.log +1 -1
- data/spec/integration/command_line_usage_spec.rb +1 -1
- data/spec/lib/helpers.rb +7 -7
- data/spec/lib/macros.rb +3 -3
- data/spec/lib/matchers.rb +41 -27
- data/spec/lib/mocks.rb +15 -14
- data/spec/lib/testing_format.rb +9 -9
- data/spec/spec_helper.rb +6 -6
- data/spec/unit/aggregator/database_inserter_spec.rb +13 -13
- data/spec/unit/aggregator/summarizer_spec.rb +4 -4
- data/spec/unit/controller/controller_spec.rb +2 -2
- data/spec/unit/controller/log_processor_spec.rb +1 -1
- data/spec/unit/database/base_class_spec.rb +19 -19
- data/spec/unit/database/connection_spec.rb +3 -3
- data/spec/unit/database/database_spec.rb +25 -25
- data/spec/unit/file_format/amazon_s3_format_spec.rb +5 -5
- data/spec/unit/file_format/apache_format_spec.rb +13 -13
- data/spec/unit/file_format/file_format_api_spec.rb +13 -13
- data/spec/unit/file_format/line_definition_spec.rb +24 -17
- data/spec/unit/file_format/merb_format_spec.rb +41 -45
- data/spec/unit/file_format/rails_format_spec.rb +157 -117
- data/spec/unit/filter/anonymize_filter_spec.rb +2 -2
- data/spec/unit/filter/field_filter_spec.rb +13 -13
- data/spec/unit/filter/filter_spec.rb +1 -1
- data/spec/unit/filter/timespan_filter_spec.rb +15 -15
- data/spec/unit/mailer_spec.rb +30 -0
- data/spec/unit/{source/request_spec.rb → request_spec.rb} +30 -30
- data/spec/unit/source/log_parser_spec.rb +27 -27
- data/spec/unit/tracker/duration_tracker_spec.rb +115 -78
- data/spec/unit/tracker/frequency_tracker_spec.rb +74 -63
- data/spec/unit/tracker/hourly_spread_spec.rb +28 -20
- data/spec/unit/tracker/timespan_tracker_spec.rb +25 -13
- data/spec/unit/tracker/tracker_api_spec.rb +13 -13
- data/spec/unit/tracker/traffic_tracker_spec.rb +81 -79
- data/tasks/github-gem.rake +125 -75
- data/tasks/request_log_analyzer.rake +2 -2
- metadata +8 -6
@@ -6,7 +6,7 @@ namespace :rla do
|
|
6
6
|
puts " Logfile: #{Rails.configuration.log_path}"
|
7
7
|
puts ""
|
8
8
|
IO.popen("request-log-analyzer #{Rails.configuration.log_path}") { |io| $stdout << io.read }
|
9
|
-
|
9
|
+
|
10
10
|
end
|
11
11
|
|
12
12
|
namespace :report do
|
@@ -22,5 +22,5 @@ namespace :rla do
|
|
22
22
|
IO.popen("request-log-analyzer #{Rails.configuration.log_path} --output HTML --file #{output_file}") { |io| $stdout << io.read }
|
23
23
|
end
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
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.4.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-09-
|
13
|
+
date: 2009-09-30 00:00:00 +02:00
|
14
14
|
default_executable: request-log-analyzer
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: 1.1.0
|
35
35
|
version:
|
36
|
-
description: " Request log analyzer's purpose is to find ot how your web application is being used and to focus your optimization efforts.\n This tool will parse all requests in the application's log file and aggregate the information. Once it is finished parsing
|
36
|
+
description: " Request log analyzer's purpose is to find ot how your web application is being used and to focus your optimization efforts.\n This tool will parse all requests in the application's log file and aggregate the information. Once it is finished parsing\n the log file(s), it will show the requests that take op most server time using various metrics. It can also insert all\n parsed request information into a database so you can roll your own analysis. It supports Rails- and Merb-based applications\n and Apache access log files out of the box, but file formats of other applications can easily be supported by supplying an\n easy to write log file format definition.\n"
|
37
37
|
email:
|
38
38
|
- willem@railsdoctors.com
|
39
39
|
- bart@railsdoctors.com
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- lib/request_log_analyzer/tracker/timespan.rb
|
84
84
|
- lib/request_log_analyzer/database/base.rb
|
85
85
|
- lib/request_log_analyzer/aggregator.rb
|
86
|
+
- spec/unit/request_spec.rb
|
86
87
|
- lib/cli/progressbar.rb
|
87
88
|
- lib/request_log_analyzer/mailer.rb
|
88
89
|
- README.rdoc
|
@@ -94,6 +95,7 @@ files:
|
|
94
95
|
- spec/unit/tracker/duration_tracker_spec.rb
|
95
96
|
- spec/unit/file_format/amazon_s3_format_spec.rb
|
96
97
|
- lib/request_log_analyzer/aggregator/echo.rb
|
98
|
+
- spec/unit/mailer_spec.rb
|
97
99
|
- spec/unit/controller/log_processor_spec.rb
|
98
100
|
- spec/spec_helper.rb
|
99
101
|
- lib/request_log_analyzer.rb
|
@@ -134,7 +136,6 @@ files:
|
|
134
136
|
- lib/request_log_analyzer/output.rb
|
135
137
|
- lib/request_log_analyzer/file_format/apache.rb
|
136
138
|
- spec/fixtures/decompression.log.zip
|
137
|
-
- spec/unit/source/request_spec.rb
|
138
139
|
- spec/unit/source/log_parser_spec.rb
|
139
140
|
- spec/fixtures/test_file_format.log
|
140
141
|
- tasks/github-gem.rake
|
@@ -184,7 +185,7 @@ rubyforge_project: r-l-a
|
|
184
185
|
rubygems_version: 1.3.5
|
185
186
|
signing_key:
|
186
187
|
specification_version: 3
|
187
|
-
summary: A command line tool to analyze request logs for Apache, Rails, Merb and other application servers
|
188
|
+
summary: A command line tool to analyze request logs for Apache, Rails, Merb and other web application servers
|
188
189
|
test_files:
|
189
190
|
- spec/unit/filter/anonymize_filter_spec.rb
|
190
191
|
- spec/unit/file_format/file_format_api_spec.rb
|
@@ -192,9 +193,11 @@ test_files:
|
|
192
193
|
- spec/integration/command_line_usage_spec.rb
|
193
194
|
- spec/unit/filter/timespan_filter_spec.rb
|
194
195
|
- spec/unit/aggregator/database_inserter_spec.rb
|
196
|
+
- spec/unit/request_spec.rb
|
195
197
|
- spec/unit/tracker/tracker_api_spec.rb
|
196
198
|
- spec/unit/tracker/duration_tracker_spec.rb
|
197
199
|
- spec/unit/file_format/amazon_s3_format_spec.rb
|
200
|
+
- spec/unit/mailer_spec.rb
|
198
201
|
- spec/unit/controller/log_processor_spec.rb
|
199
202
|
- spec/unit/filter/filter_spec.rb
|
200
203
|
- spec/unit/tracker/traffic_tracker_spec.rb
|
@@ -206,7 +209,6 @@ test_files:
|
|
206
209
|
- spec/unit/file_format/line_definition_spec.rb
|
207
210
|
- spec/unit/database/connection_spec.rb
|
208
211
|
- spec/unit/controller/controller_spec.rb
|
209
|
-
- spec/unit/source/request_spec.rb
|
210
212
|
- spec/unit/source/log_parser_spec.rb
|
211
213
|
- spec/unit/database/database_spec.rb
|
212
214
|
- spec/unit/aggregator/summarizer_spec.rb
|