log_parser_notifier 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/Rakefile +2 -0
- data/bin/log_parser_notifier +41 -0
- data/lib/log_parser_notifier/log_reader.rb +24 -0
- data/lib/log_parser_notifier/rails_request_notifier.rb +32 -0
- data/lib/log_parser_notifier/version.rb +3 -0
- data/lib/log_parser_notifier.rb +21 -0
- data/log_parser_notifier.gemspec +29 -0
- data/spec/log_reader_spec.rb +36 -0
- data/spec/rails_request_notifier_spec.rb +53 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/rails.log +35 -0
- data/spec/support/rails.log.back +35 -0
- data/spec/support/rails_log_requests.rb +46 -0
- data/spec/support/rails_rotated.log +19 -0
- data/spec/support/rails_with_new_requests.log +76 -0
- metadata +159 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ee15ed3dc00baba016957ba82f2e36cfacb15e97
|
4
|
+
data.tar.gz: 8d920728e8c7ad8f8d9e4815e77b1346348e8d6f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c6ee6d0125593e1688abac2465eb545513229b05bc19d8f7b4f3ae4fcefb7e7dc6d836974f63aee6051b2492f3eca4af346be1e56f1d300ccbd644223aa0bbf4
|
7
|
+
data.tar.gz: bbd97b33c1394ced77d9a82c961eb658aebe5bf81782c02954ad677ac9b3a149e2083c59a8798c13f8e9dda3c876cfaf00fd6a7c1a33bef2e938f9f6c6b58cd5
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Taroko Software
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Josh Moore
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# LogParserNotifier
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'log_parser_notifier'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install log_parser_notifier
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Contributing
|
26
|
+
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/log_parser_notifier/fork )
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
31
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'slop'
|
4
|
+
|
5
|
+
trap 'SIGINT' do
|
6
|
+
exit 130
|
7
|
+
end
|
8
|
+
|
9
|
+
opts = Slop.parse do |o|
|
10
|
+
o.banner = 'usage: lib_parser_notifier [options] file_name'
|
11
|
+
o.integer '--check_interval', 'check interval (in minutes)', default: 5
|
12
|
+
o.bool '-v', '--verbose', 'enable verbose mode'
|
13
|
+
o.on '--version', 'print the version' do
|
14
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
|
15
|
+
puts LogParserNotifier::VERSION
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
o.on '-h', '--help', 'help' do
|
19
|
+
puts o
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
if opts.verbose?
|
25
|
+
require 'logger'
|
26
|
+
module LogParserNotifier
|
27
|
+
LogLevel = Logger::DEBUG
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
require File.join(File.dirname(__FILE__), '..', 'lib', 'log_parser_notifier')
|
32
|
+
|
33
|
+
request_notifier = LogParserNotifier::RailsRequestNotifier.new(opts.arguments.first)
|
34
|
+
|
35
|
+
while true
|
36
|
+
LogParserNotifier.logger.debug('waking up and checking log')
|
37
|
+
|
38
|
+
request_notifier.parse_and_trigger_notifications
|
39
|
+
|
40
|
+
sleep(opts[:check_interval])
|
41
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module LogParserNotifier
|
2
|
+
class LogReader
|
3
|
+
def initialize(log_file)
|
4
|
+
LogParserNotifier.logger.debug("creating log reader for: '#{log_file}'")
|
5
|
+
if log_file.instance_of? String
|
6
|
+
@log_file = File.open(log_file, 'rb')
|
7
|
+
@log_file.seek(@log_file.size, IO::SEEK_SET)
|
8
|
+
else
|
9
|
+
@log_file = log_file # really just for testing
|
10
|
+
end
|
11
|
+
LogParserNotifier.logger.debug("staring position at: #{@log_file.pos}")
|
12
|
+
end
|
13
|
+
|
14
|
+
def log_io
|
15
|
+
@log_file.seek(0, IO::SEEK_SET) if @log_file.pos > @log_file.size
|
16
|
+
|
17
|
+
@log_file
|
18
|
+
end
|
19
|
+
|
20
|
+
def read_to_end
|
21
|
+
log_io.read
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'statsd'
|
2
|
+
|
3
|
+
module LogParserNotifier
|
4
|
+
class RailsRequestNotifier
|
5
|
+
def initialize(log_file)
|
6
|
+
@log_reader = LogReader.new log_file
|
7
|
+
end
|
8
|
+
|
9
|
+
def parser
|
10
|
+
@parser ||= RequestLogAnalyzer::Source::LogParser.new(RequestLogAnalyzer::FileFormat::Rails3.create)
|
11
|
+
end
|
12
|
+
|
13
|
+
def statsd
|
14
|
+
@statsd ||= Statsd.new('localhost', 8125)
|
15
|
+
end
|
16
|
+
|
17
|
+
def parse_and_trigger_notifications
|
18
|
+
parser.parse_stream @log_reader.log_io do |request|
|
19
|
+
tags = %W(controller:#{request[:controller]} action:#{request[:action]} con_act:#{request[:controller]}##{request[:action]})
|
20
|
+
|
21
|
+
LogParserNotifier.logger.debug("processing request for #{request[:controller]}##{request[:action]} with status: #{request[:status]} it is complete: #{request.completed?}")
|
22
|
+
if request[:status] >= 200 && request[:status] < 400
|
23
|
+
|
24
|
+
statsd.increment 'rails.requests', tags: tags
|
25
|
+
statsd.timing 'rails.load_time', request[:duration] * 1000, tags: tags
|
26
|
+
else
|
27
|
+
statsd.increment 'rails.failed_requests', tags: tags
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'log_parser_notifier', 'version')
|
2
|
+
require File.join(File.dirname(__FILE__), 'log_parser_notifier', '/log_reader')
|
3
|
+
require File.join(File.dirname(__FILE__), 'log_parser_notifier', '/rails_request_notifier')
|
4
|
+
|
5
|
+
require 'logger'
|
6
|
+
require 'request_log_analyzer'
|
7
|
+
|
8
|
+
|
9
|
+
module LogParserNotifier
|
10
|
+
def self.logger
|
11
|
+
@logger ||= Logger.new(STDOUT)
|
12
|
+
|
13
|
+
if defined? LogParserNotifier::LogLevel
|
14
|
+
@logger.level = LogParserNotifier::LogLevel
|
15
|
+
else
|
16
|
+
@logger.level = Logger::WARN
|
17
|
+
end
|
18
|
+
|
19
|
+
@logger
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'log_parser_notifier/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'log_parser_notifier'
|
8
|
+
spec.version = LogParserNotifier::VERSION
|
9
|
+
spec.authors = ['Josh Moore']
|
10
|
+
spec.email = ['joshsmoore@gmail.com']
|
11
|
+
spec.summary = 'A small gem untilizing request-log-analyxer to send'\
|
12
|
+
' request events to logging solutions'
|
13
|
+
spec.description = 'Write a longer description. Optional.'
|
14
|
+
spec.homepage = ''
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0")
|
18
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.add_dependency 'request-log-analyzer', '~> 1.13.4'
|
23
|
+
spec.add_dependency 'slop', '~> 4.2.0'
|
24
|
+
spec.add_dependency 'dogstatsd-ruby', '~> 1.5.0'
|
25
|
+
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.7'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
28
|
+
spec.add_development_dependency 'rspec', '~> 3.3.0'
|
29
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module LogParserNotifier
|
4
|
+
describe LogReader do
|
5
|
+
let :log_reader do
|
6
|
+
LogReader.new(File.join(Dir.pwd, 'spec', 'support', 'rails.log'))
|
7
|
+
end
|
8
|
+
|
9
|
+
after do
|
10
|
+
FileUtils.cp 'spec/support/rails.log.back', 'spec/support/rails.log'
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'when created it should start reading from the end of the file' do
|
14
|
+
expect(log_reader.read_to_end).to eq('')
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'should read the new lines if log file is updated after reading' do
|
18
|
+
log_reader # force initialize
|
19
|
+
FileUtils.cp 'spec/support/rails_with_new_requests.log', 'spec/support/rails.log'
|
20
|
+
expect(log_reader.read_to_end.split("\n").count).to eq 41
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'should never reread the same lines' do
|
24
|
+
log_reader # force initialize
|
25
|
+
FileUtils.cp 'spec/support/rails_with_new_requests.log', 'spec/support/rails.log'
|
26
|
+
log_reader.read_to_end
|
27
|
+
expect(log_reader.read_to_end).to eq ''
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'should start from the beginning if the log file is rotated' do
|
31
|
+
log_reader # force initialize
|
32
|
+
FileUtils.cp 'spec/support/rails_rotated.log', 'spec/support/rails.log'
|
33
|
+
expect(log_reader.read_to_end.split("\n").count).to eq 19
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
require './spec/support/rails_log_requests'
|
4
|
+
|
5
|
+
module LogParserNotifier
|
6
|
+
describe RailsRequestNotifier do
|
7
|
+
let :rails_request_notifier do
|
8
|
+
RailsRequestNotifier.new(@logs)
|
9
|
+
end
|
10
|
+
|
11
|
+
after { rails_request_notifier.parse_and_trigger_notifications }
|
12
|
+
|
13
|
+
describe 'successful requests' do
|
14
|
+
before { @logs = RailsLogRequests.normal_request_1 }
|
15
|
+
|
16
|
+
it 'should record the number of successful requests' do
|
17
|
+
expect_any_instance_of(Statsd).to receive(:increment).with('rails.requests', tags: %w(controller:DashboardController action:show con_act:DashboardController#show))
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'should record the average load time of the requests' do
|
21
|
+
expect_any_instance_of(Statsd).to receive(:timing).with('rails.load_time', 91, tags: %w(controller:DashboardController action:show con_act:DashboardController#show))
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'should not record the number of failed requests' do
|
25
|
+
expect_any_instance_of(Statsd).to_not receive(:increment).with('rails.failed_requests', anything)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'failed request' do
|
30
|
+
before { @logs = RailsLogRequests.failed_request }
|
31
|
+
|
32
|
+
it 'should record the number of failed requests' do
|
33
|
+
expect_any_instance_of(Statsd).to receive(:increment).with('rails.failed_requests', tags: %w(controller:DocumentsController action:preview con_act:DocumentsController#preview))
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'should not record successful request' do
|
37
|
+
expect_any_instance_of(Statsd).to_not receive(:increment).with('rails.requests', anything)
|
38
|
+
end
|
39
|
+
|
40
|
+
it 'should not record load time of request' do
|
41
|
+
expect_any_instance_of(Statsd).to_not receive(:timing)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'partial request (AKA log got read while it was being written)' do
|
46
|
+
it 'should not record partial requests' do
|
47
|
+
@logs = RailsLogRequests.partial_request
|
48
|
+
expect_any_instance_of(Statsd).to_not receive(:increment)
|
49
|
+
expect_any_instance_of(Statsd).to_not receive(:timing)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'bundler/setup'
|
2
|
+
require 'logger'
|
3
|
+
|
4
|
+
Bundler.setup
|
5
|
+
|
6
|
+
module LogParserNotifier
|
7
|
+
LogLevel = Logger::DEBUG
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'log_parser_notifier' # and any other gems you need
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.expect_with :rspec do |expectations|
|
14
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
15
|
+
end
|
16
|
+
|
17
|
+
config.mock_with :rspec do |mocks|
|
18
|
+
mocks.verify_partial_doubles = true
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
I, [2015-08-24T05:51:49.146000 #19020] INFO -- : Started POST "/chargify/hooks" for 50.112.130.129 at 2015-08-24 05:51:49 +0000
|
2
|
+
I, [2015-08-24T05:51:49.485000 #19020] INFO -- : Processing by Chargify::HooksController#dispatch_handler as XML
|
3
|
+
I, [2015-08-24T05:51:49.487000 #19020] INFO -- : Parameters: {"id"=>"47858830", "event"=>"trial_end_notice", "payload"=>{"site"=>{"id"=>"27193", "subdomain"=>"legaltemplates-secure"}, "customer"=>{"id"=>"9632642", "first_name"=>"Alex", "last_name"=>"Auld", "reference"=>"16206", "organization"=>"", "email"=>"auldy@mac.com"}, "email_sent"=>"false", "estimated_renewal_amount_in_cents"=>"3995", "message"=>"End of trial for trial ending on 08/27/2015 for Alex Auld's subscription to Trial", "payment_profile"=>{"id"=>"6557640", "first_name"=>"Alex", "last_name"=>"Auld", "card_type"=>"visa", "masked_card_number"=>"XXXX-XXXX-XXXX-7600", "expiration_month"=>"7", "expiration_year"=>"2016"}, "product"=>{"id"=>"3681002", "name"=>"Trial", "product_family_id"=>"489153", "product_family_name"=>"Plans"}, "subscription"=>{"id"=>"9922506", "state"=>"trialing", "current_period_ends_at"=>"2015-08-27 01:51:22 -0400"}}}
|
4
|
+
I, [2015-08-24T05:51:50.699000 #19020] INFO -- : Rendered text template (1.0ms)
|
5
|
+
I, [2015-08-24T05:51:50.701000 #19020] INFO -- : Completed 200 OK in 1212ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
6
|
+
I, [2015-08-24T05:53:24.231000 #19020] INFO -- : Started GET "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:24 +0000
|
7
|
+
I, [2015-08-24T05:53:24.242000 #19020] INFO -- : Processing by Users::SessionsController#new as HTML
|
8
|
+
I, [2015-08-24T05:53:24.653000 #19020] INFO -- : Rendered users/sessions/new.html.erb within layouts/application (112.0ms)
|
9
|
+
I, [2015-08-24T05:53:24.670000 #19020] INFO -- : Rendered shared/_gtm.html.erb (4.0ms)
|
10
|
+
I, [2015-08-24T05:53:24.676000 #19020] INFO -- : Rendered shared/_contact_number.erb (3.0ms)
|
11
|
+
I, [2015-08-24T05:53:24.682000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (3.0ms)
|
12
|
+
I, [2015-08-24T05:53:24.687000 #19020] INFO -- : Rendered documents/_preview.html.erb (2.0ms)
|
13
|
+
I, [2015-08-24T05:53:24.692000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
14
|
+
I, [2015-08-24T05:53:24.701000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (2.0ms)
|
15
|
+
I, [2015-08-24T05:53:24.702000 #19020] INFO -- : Completed 200 OK in 460ms (Views: 179.0ms | ActiveRecord: 11.0ms)
|
16
|
+
I, [2015-08-24T05:53:46.568000 #19020] INFO -- : Started POST "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:46 +0000
|
17
|
+
I, [2015-08-24T05:53:46.582000 #19020] INFO -- : Processing by Users::SessionsController#create as HTML
|
18
|
+
I, [2015-08-24T05:53:46.588000 #19020] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"UE8RA2nOm/U1kQ28cIvS64e384u/MCXrjwXCqNyFiH0=", "return_to"=>"", "user"=>{"email"=>"magikol01@yahoo.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"SIGN IN"}
|
19
|
+
I, [2015-08-24T05:53:46.793000 #19020] INFO -- : Redirected to https://app.legaltemplates.net/dashboard
|
20
|
+
I, [2015-08-24T05:53:46.794000 #19020] INFO -- : Completed 302 Found in 205ms (ActiveRecord: 21.0ms)
|
21
|
+
I, [2015-08-24T05:53:47.008000 #19020] INFO -- : Started GET "/dashboard" for 114.179.175.90 at 2015-08-24 05:53:47 +0000
|
22
|
+
I, [2015-08-24T05:53:47.027000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
23
|
+
I, [2015-08-24T05:53:47.361000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (273.0ms)
|
24
|
+
I, [2015-08-24T05:53:48.083000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (714.0ms)
|
25
|
+
I, [2015-08-24T05:53:48.084000 #19020] INFO -- : Rendered dashboard/_account.html.erb (720.0ms)
|
26
|
+
I, [2015-08-24T05:53:48.497000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (410.0ms)
|
27
|
+
I, [2015-08-24T05:53:48.498000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (1413.0ms)
|
28
|
+
I, [2015-08-24T05:53:48.508000 #19020] INFO -- : Rendered shared/_gtm.html.erb (1.0ms)
|
29
|
+
I, [2015-08-24T05:53:48.519000 #19020] INFO -- : Rendered layouts/_user_menu.html.erb (5.0ms)
|
30
|
+
I, [2015-08-24T05:53:48.521000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
31
|
+
I, [2015-08-24T05:53:48.526000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (0.0ms)
|
32
|
+
I, [2015-08-24T05:53:48.530000 #19020] INFO -- : Rendered documents/_preview.html.erb (1.0ms)
|
33
|
+
I, [2015-08-24T05:53:48.534000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
34
|
+
I, [2015-08-24T05:53:48.537000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
35
|
+
I, [2015-08-24T05:53:48.539000 #19020] INFO -- : Completed 200 OK in 1511ms (Views: 1379.0ms | ActiveRecord: 90.0ms)
|
@@ -0,0 +1,35 @@
|
|
1
|
+
I, [2015-08-24T05:51:49.146000 #19020] INFO -- : Started POST "/chargify/hooks" for 50.112.130.129 at 2015-08-24 05:51:49 +0000
|
2
|
+
I, [2015-08-24T05:51:49.485000 #19020] INFO -- : Processing by Chargify::HooksController#dispatch_handler as XML
|
3
|
+
I, [2015-08-24T05:51:49.487000 #19020] INFO -- : Parameters: {"id"=>"47858830", "event"=>"trial_end_notice", "payload"=>{"site"=>{"id"=>"27193", "subdomain"=>"legaltemplates-secure"}, "customer"=>{"id"=>"9632642", "first_name"=>"Alex", "last_name"=>"Auld", "reference"=>"16206", "organization"=>"", "email"=>"auldy@mac.com"}, "email_sent"=>"false", "estimated_renewal_amount_in_cents"=>"3995", "message"=>"End of trial for trial ending on 08/27/2015 for Alex Auld's subscription to Trial", "payment_profile"=>{"id"=>"6557640", "first_name"=>"Alex", "last_name"=>"Auld", "card_type"=>"visa", "masked_card_number"=>"XXXX-XXXX-XXXX-7600", "expiration_month"=>"7", "expiration_year"=>"2016"}, "product"=>{"id"=>"3681002", "name"=>"Trial", "product_family_id"=>"489153", "product_family_name"=>"Plans"}, "subscription"=>{"id"=>"9922506", "state"=>"trialing", "current_period_ends_at"=>"2015-08-27 01:51:22 -0400"}}}
|
4
|
+
I, [2015-08-24T05:51:50.699000 #19020] INFO -- : Rendered text template (1.0ms)
|
5
|
+
I, [2015-08-24T05:51:50.701000 #19020] INFO -- : Completed 200 OK in 1212ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
6
|
+
I, [2015-08-24T05:53:24.231000 #19020] INFO -- : Started GET "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:24 +0000
|
7
|
+
I, [2015-08-24T05:53:24.242000 #19020] INFO -- : Processing by Users::SessionsController#new as HTML
|
8
|
+
I, [2015-08-24T05:53:24.653000 #19020] INFO -- : Rendered users/sessions/new.html.erb within layouts/application (112.0ms)
|
9
|
+
I, [2015-08-24T05:53:24.670000 #19020] INFO -- : Rendered shared/_gtm.html.erb (4.0ms)
|
10
|
+
I, [2015-08-24T05:53:24.676000 #19020] INFO -- : Rendered shared/_contact_number.erb (3.0ms)
|
11
|
+
I, [2015-08-24T05:53:24.682000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (3.0ms)
|
12
|
+
I, [2015-08-24T05:53:24.687000 #19020] INFO -- : Rendered documents/_preview.html.erb (2.0ms)
|
13
|
+
I, [2015-08-24T05:53:24.692000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
14
|
+
I, [2015-08-24T05:53:24.701000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (2.0ms)
|
15
|
+
I, [2015-08-24T05:53:24.702000 #19020] INFO -- : Completed 200 OK in 460ms (Views: 179.0ms | ActiveRecord: 11.0ms)
|
16
|
+
I, [2015-08-24T05:53:46.568000 #19020] INFO -- : Started POST "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:46 +0000
|
17
|
+
I, [2015-08-24T05:53:46.582000 #19020] INFO -- : Processing by Users::SessionsController#create as HTML
|
18
|
+
I, [2015-08-24T05:53:46.588000 #19020] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"UE8RA2nOm/U1kQ28cIvS64e384u/MCXrjwXCqNyFiH0=", "return_to"=>"", "user"=>{"email"=>"magikol01@yahoo.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"SIGN IN"}
|
19
|
+
I, [2015-08-24T05:53:46.793000 #19020] INFO -- : Redirected to https://app.legaltemplates.net/dashboard
|
20
|
+
I, [2015-08-24T05:53:46.794000 #19020] INFO -- : Completed 302 Found in 205ms (ActiveRecord: 21.0ms)
|
21
|
+
I, [2015-08-24T05:53:47.008000 #19020] INFO -- : Started GET "/dashboard" for 114.179.175.90 at 2015-08-24 05:53:47 +0000
|
22
|
+
I, [2015-08-24T05:53:47.027000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
23
|
+
I, [2015-08-24T05:53:47.361000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (273.0ms)
|
24
|
+
I, [2015-08-24T05:53:48.083000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (714.0ms)
|
25
|
+
I, [2015-08-24T05:53:48.084000 #19020] INFO -- : Rendered dashboard/_account.html.erb (720.0ms)
|
26
|
+
I, [2015-08-24T05:53:48.497000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (410.0ms)
|
27
|
+
I, [2015-08-24T05:53:48.498000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (1413.0ms)
|
28
|
+
I, [2015-08-24T05:53:48.508000 #19020] INFO -- : Rendered shared/_gtm.html.erb (1.0ms)
|
29
|
+
I, [2015-08-24T05:53:48.519000 #19020] INFO -- : Rendered layouts/_user_menu.html.erb (5.0ms)
|
30
|
+
I, [2015-08-24T05:53:48.521000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
31
|
+
I, [2015-08-24T05:53:48.526000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (0.0ms)
|
32
|
+
I, [2015-08-24T05:53:48.530000 #19020] INFO -- : Rendered documents/_preview.html.erb (1.0ms)
|
33
|
+
I, [2015-08-24T05:53:48.534000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
34
|
+
I, [2015-08-24T05:53:48.537000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
35
|
+
I, [2015-08-24T05:53:48.539000 #19020] INFO -- : Completed 200 OK in 1511ms (Views: 1379.0ms | ActiveRecord: 90.0ms)
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module LogParserNotifier
|
2
|
+
module RailsLogRequests
|
3
|
+
def self.normal_request_1
|
4
|
+
StringIO.new %Q(I, [2015-08-24T07:36:43.598000 #19020] INFO -- : Started GET "/dashboard" for 50.31.29.217 at 2015-08-24 07:36:43 +0000
|
5
|
+
I, [2015-08-24T07:36:43.603000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
6
|
+
I, [2015-08-24T07:36:43.666000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (5.0ms)
|
7
|
+
I, [2015-08-24T07:36:43.668000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (1.0ms)
|
8
|
+
I, [2015-08-24T07:36:43.669000 #19020] INFO -- : Rendered dashboard/_account.html.erb (2.0ms)
|
9
|
+
I, [2015-08-24T07:36:43.670000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (0.0ms)
|
10
|
+
I, [2015-08-24T07:36:43.671000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (11.0ms)
|
11
|
+
I, [2015-08-24T07:36:43.677000 #19020] INFO -- : Rendered shared/_gtm.html.erb (0.0ms)
|
12
|
+
I, [2015-08-24T07:36:43.683000 #19020] INFO -- : Rendered layouts/_guest_menu.html.erb (3.0ms)
|
13
|
+
I, [2015-08-24T07:36:43.684000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
14
|
+
I, [2015-08-24T07:36:43.687000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (1.0ms)
|
15
|
+
I, [2015-08-24T07:36:43.688000 #19020] INFO -- : Rendered documents/_preview.html.erb (0.0ms)
|
16
|
+
I, [2015-08-24T07:36:43.692000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
17
|
+
I, [2015-08-24T07:36:43.694000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
18
|
+
I, [2015-08-24T07:36:43.695000 #19020] INFO -- : Completed 200 OK in 91ms (Views: 34.0ms | ActiveRecord: 4.0ms)
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.failed_request
|
23
|
+
StringIO.new %Q(I, [2015-08-24T07:35:11.541000 #19020] INFO -- : Started GET "/documents/9293/preview/?page=0" for 50.31.29.217 at 2015-08-24 07:35:11 +0000
|
24
|
+
I, [2015-08-24T07:35:11.549000 #19020] INFO -- : Processing by DocumentsController#preview as JSON
|
25
|
+
I, [2015-08-24T07:35:11.550000 #19020] INFO -- : Parameters: {"page"=>"0", "id"=>"9293"}
|
26
|
+
I, [2015-08-24T07:35:11.597000 #19020] INFO -- : Completed 404 Not Found in 46ms
|
27
|
+
F, [2015-08-24T07:35:11.645000 #19020] FATAL -- :
|
28
|
+
ActiveRecord::RecordNotFound (Couldn't find Document with 'id'=9293 [WHERE "documents"."user_id" = ?]):
|
29
|
+
app/controllers/documents_controller.rb:208:in `set_document'
|
30
|
+
)
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.partial_request
|
34
|
+
StringIO.new %Q(I, [2015-08-24T07:36:43.598000 #19020] INFO -- : Started GET "/dashboard" for 50.31.29.217 at 2015-08-24 07:36:43 +0000
|
35
|
+
I, [2015-08-24T07:36:43.603000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
36
|
+
I, [2015-08-24T07:36:43.666000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (5.0ms)
|
37
|
+
I, [2015-08-24T07:36:43.668000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (1.0ms)
|
38
|
+
I, [2015-08-24T07:36:43.669000 #19020] INFO -- : Rendered dashboard/_account.html.erb (2.0ms)
|
39
|
+
I, [2015-08-24T07:36:43.670000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (0.0ms)
|
40
|
+
I, [2015-08-24T07:36:43.671000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (11.0ms)
|
41
|
+
I, [2015-08-24T07:36:43.677000 #19020] INFO -- : Rendered shared/_gtm.html.erb (0.0ms)
|
42
|
+
I, [2015-08-24T07:36:43.683000 #19020] INFO -- : Rendered layouts/_guest_menu.html.erb (3.0ms)
|
43
|
+
)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
I, [2015-08-24T07:38:26.257000 #19020] INFO -- : Processing by DocumentsController#duplicate as JSON
|
2
|
+
I, [2015-08-24T07:38:26.257000 #19020] INFO -- : Parameters: {"document"=>{"name"=>"Copy of Lease Agreement"}, "id"=>"9293"}
|
3
|
+
I, [2015-08-24T07:38:26.369000 #19020] INFO -- : Rendered documents/show.json.jbuilder (7.0ms)
|
4
|
+
I, [2015-08-24T07:38:26.370000 #19020] INFO -- : Completed 201 Created in 112ms (Views: 15.0ms | ActiveRecord: 21.0ms)
|
5
|
+
I, [2015-08-24T07:38:27.098000 #19020] INFO -- : Started GET "/dashboard" for 50.31.29.217 at 2015-08-24 07:38:27 +0000
|
6
|
+
I, [2015-08-24T07:38:27.105000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
7
|
+
I, [2015-08-24T07:38:27.199000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (73.0ms)
|
8
|
+
I, [2015-08-24T07:38:27.699000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (494.0ms)
|
9
|
+
I, [2015-08-24T07:38:27.700000 #19020] INFO -- : Rendered dashboard/_account.html.erb (499.0ms)
|
10
|
+
I, [2015-08-24T07:38:28.116000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (414.0ms)
|
11
|
+
I, [2015-08-24T07:38:28.117000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (995.0ms)
|
12
|
+
I, [2015-08-24T07:38:28.124000 #19020] INFO -- : Rendered shared/_gtm.html.erb (3.0ms)
|
13
|
+
I, [2015-08-24T07:38:28.130000 #19020] INFO -- : Rendered layouts/_user_menu.html.erb (4.0ms)
|
14
|
+
I, [2015-08-24T07:38:28.135000 #19020] INFO -- : Rendered shared/_contact_number.erb (2.0ms)
|
15
|
+
I, [2015-08-24T07:38:28.138000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (1.0ms)
|
16
|
+
I, [2015-08-24T07:38:28.142000 #19020] INFO -- : Rendered documents/_preview.html.erb (2.0ms)
|
17
|
+
I, [2015-08-24T07:38:28.145000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
18
|
+
I, [2015-08-24T07:38:28.149000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
19
|
+
I, [2015-08-24T07:38:28.150000 #19020] INFO -- : Completed 200 OK in 1045ms (Views: 1017.0ms | ActiveRecord: 16.0ms)
|
@@ -0,0 +1,76 @@
|
|
1
|
+
I, [2015-08-24T05:51:49.146000 #19020] INFO -- : Started POST "/chargify/hooks" for 50.112.130.129 at 2015-08-24 05:51:49 +0000
|
2
|
+
I, [2015-08-24T05:51:49.485000 #19020] INFO -- : Processing by Chargify::HooksController#dispatch_handler as XML
|
3
|
+
I, [2015-08-24T05:51:49.487000 #19020] INFO -- : Parameters: {"id"=>"47858830", "event"=>"trial_end_notice", "payload"=>{"site"=>{"id"=>"27193", "subdomain"=>"legaltemplates-secure"}, "customer"=>{"id"=>"9632642", "first_name"=>"Alex", "last_name"=>"Auld", "reference"=>"16206", "organization"=>"", "email"=>"auldy@mac.com"}, "email_sent"=>"false", "estimated_renewal_amount_in_cents"=>"3995", "message"=>"End of trial for trial ending on 08/27/2015 for Alex Auld's subscription to Trial", "payment_profile"=>{"id"=>"6557640", "first_name"=>"Alex", "last_name"=>"Auld", "card_type"=>"visa", "masked_card_number"=>"XXXX-XXXX-XXXX-7600", "expiration_month"=>"7", "expiration_year"=>"2016"}, "product"=>{"id"=>"3681002", "name"=>"Trial", "product_family_id"=>"489153", "product_family_name"=>"Plans"}, "subscription"=>{"id"=>"9922506", "state"=>"trialing", "current_period_ends_at"=>"2015-08-27 01:51:22 -0400"}}}
|
4
|
+
I, [2015-08-24T05:51:50.699000 #19020] INFO -- : Rendered text template (1.0ms)
|
5
|
+
I, [2015-08-24T05:51:50.701000 #19020] INFO -- : Completed 200 OK in 1212ms (Views: 4.0ms | ActiveRecord: 0.0ms)
|
6
|
+
I, [2015-08-24T05:53:24.231000 #19020] INFO -- : Started GET "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:24 +0000
|
7
|
+
I, [2015-08-24T05:53:24.242000 #19020] INFO -- : Processing by Users::SessionsController#new as HTML
|
8
|
+
I, [2015-08-24T05:53:24.653000 #19020] INFO -- : Rendered users/sessions/new.html.erb within layouts/application (112.0ms)
|
9
|
+
I, [2015-08-24T05:53:24.670000 #19020] INFO -- : Rendered shared/_gtm.html.erb (4.0ms)
|
10
|
+
I, [2015-08-24T05:53:24.676000 #19020] INFO -- : Rendered shared/_contact_number.erb (3.0ms)
|
11
|
+
I, [2015-08-24T05:53:24.682000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (3.0ms)
|
12
|
+
I, [2015-08-24T05:53:24.687000 #19020] INFO -- : Rendered documents/_preview.html.erb (2.0ms)
|
13
|
+
I, [2015-08-24T05:53:24.692000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
14
|
+
I, [2015-08-24T05:53:24.701000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (2.0ms)
|
15
|
+
I, [2015-08-24T05:53:24.702000 #19020] INFO -- : Completed 200 OK in 460ms (Views: 179.0ms | ActiveRecord: 11.0ms)
|
16
|
+
I, [2015-08-24T05:53:46.568000 #19020] INFO -- : Started POST "/users/sign_in" for 114.179.175.90 at 2015-08-24 05:53:46 +0000
|
17
|
+
I, [2015-08-24T05:53:46.582000 #19020] INFO -- : Processing by Users::SessionsController#create as HTML
|
18
|
+
I, [2015-08-24T05:53:46.588000 #19020] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"UE8RA2nOm/U1kQ28cIvS64e384u/MCXrjwXCqNyFiH0=", "return_to"=>"", "user"=>{"email"=>"magikol01@yahoo.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"SIGN IN"}
|
19
|
+
I, [2015-08-24T05:53:46.793000 #19020] INFO -- : Redirected to https://app.legaltemplates.net/dashboard
|
20
|
+
I, [2015-08-24T05:53:46.794000 #19020] INFO -- : Completed 302 Found in 205ms (ActiveRecord: 21.0ms)
|
21
|
+
I, [2015-08-24T05:53:47.008000 #19020] INFO -- : Started GET "/dashboard" for 114.179.175.90 at 2015-08-24 05:53:47 +0000
|
22
|
+
I, [2015-08-24T05:53:47.027000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
23
|
+
I, [2015-08-24T05:53:47.361000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (273.0ms)
|
24
|
+
I, [2015-08-24T05:53:48.083000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (714.0ms)
|
25
|
+
I, [2015-08-24T05:53:48.084000 #19020] INFO -- : Rendered dashboard/_account.html.erb (720.0ms)
|
26
|
+
I, [2015-08-24T05:53:48.497000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (410.0ms)
|
27
|
+
I, [2015-08-24T05:53:48.498000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (1413.0ms)
|
28
|
+
I, [2015-08-24T05:53:48.508000 #19020] INFO -- : Rendered shared/_gtm.html.erb (1.0ms)
|
29
|
+
I, [2015-08-24T05:53:48.519000 #19020] INFO -- : Rendered layouts/_user_menu.html.erb (5.0ms)
|
30
|
+
I, [2015-08-24T05:53:48.521000 #19020] INFO -- : Rendered shared/_contact_number.erb (1.0ms)
|
31
|
+
I, [2015-08-24T05:53:48.526000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (0.0ms)
|
32
|
+
I, [2015-08-24T05:53:48.530000 #19020] INFO -- : Rendered documents/_preview.html.erb (1.0ms)
|
33
|
+
I, [2015-08-24T05:53:48.534000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
34
|
+
I, [2015-08-24T05:53:48.537000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
35
|
+
I, [2015-08-24T05:53:48.539000 #19020] INFO -- : Completed 200 OK in 1511ms (Views: 1379.0ms | ActiveRecord: 90.0ms)
|
36
|
+
I, [2015-08-24T07:35:11.541000 #19020] INFO -- : Started GET "/documents/9293/preview/?page=0" for 50.31.29.217 at 2015-08-24 07:35:11 +0000
|
37
|
+
I, [2015-08-24T07:35:11.549000 #19020] INFO -- : Processing by DocumentsController#preview as JSON
|
38
|
+
I, [2015-08-24T07:35:11.550000 #19020] INFO -- : Parameters: {"page"=>"0", "id"=>"9293"}
|
39
|
+
I, [2015-08-24T07:35:11.597000 #19020] INFO -- : Completed 404 Not Found in 46ms
|
40
|
+
F, [2015-08-24T07:35:11.645000 #19020] FATAL -- :
|
41
|
+
ActiveRecord::RecordNotFound (Couldn't find Document with 'id'=9293 [WHERE "documents"."user_id" = ?]):
|
42
|
+
app/controllers/documents_controller.rb:208:in `set_document'
|
43
|
+
|
44
|
+
|
45
|
+
I, [2015-08-24T07:35:31.453000 #19020] INFO -- : Started POST "/documents/9293/duplicate" for 50.31.29.217 at 2015-08-24 07:35:31 +0000
|
46
|
+
I, [2015-08-24T07:35:31.465000 #19020] INFO -- : Processing by DocumentsController#duplicate as JSON
|
47
|
+
I, [2015-08-24T07:35:31.466000 #19020] INFO -- : Parameters: {"document"=>{"name"=>"Copy of Lease Agreement"}, "id"=>"9293"}
|
48
|
+
I, [2015-08-24T07:35:31.519000 #19020] INFO -- : Completed 404 Not Found in 52ms
|
49
|
+
F, [2015-08-24T07:35:31.558000 #19020] FATAL -- :
|
50
|
+
ActiveRecord::RecordNotFound (Couldn't find Document with 'id'=9293 [WHERE "documents"."user_id" = ?]):
|
51
|
+
app/controllers/documents_controller.rb:208:in `set_document'
|
52
|
+
|
53
|
+
|
54
|
+
I, [2015-08-24T07:36:43.598000 #19020] INFO -- : Started GET "/dashboard" for 50.31.29.217 at 2015-08-24 07:36:43 +0000
|
55
|
+
I, [2015-08-24T07:36:43.603000 #19020] INFO -- : Processing by DashboardController#show as HTML
|
56
|
+
I, [2015-08-24T07:36:43.666000 #19020] INFO -- : Rendered dashboard/_documents.html.erb (5.0ms)
|
57
|
+
I, [2015-08-24T07:36:43.668000 #19020] INFO -- : Rendered dashboard/_subscription.html.erb (1.0ms)
|
58
|
+
I, [2015-08-24T07:36:43.669000 #19020] INFO -- : Rendered dashboard/_account.html.erb (2.0ms)
|
59
|
+
I, [2015-08-24T07:36:43.670000 #19020] INFO -- : Rendered dashboard/_billing.html.erb (0.0ms)
|
60
|
+
I, [2015-08-24T07:36:43.671000 #19020] INFO -- : Rendered dashboard/show.html.erb within layouts/application (11.0ms)
|
61
|
+
I, [2015-08-24T07:36:43.677000 #19020] INFO -- : Rendered shared/_gtm.html.erb (0.0ms)
|
62
|
+
I, [2015-08-24T07:36:43.683000 #19020] INFO -- : Rendered layouts/_guest_menu.html.erb (3.0ms)
|
63
|
+
I, [2015-08-24T07:36:43.684000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
64
|
+
I, [2015-08-24T07:36:43.687000 #19020] INFO -- : Rendered shared/_mega_menu.html.erb (1.0ms)
|
65
|
+
I, [2015-08-24T07:36:43.688000 #19020] INFO -- : Rendered documents/_preview.html.erb (0.0ms)
|
66
|
+
I, [2015-08-24T07:36:43.692000 #19020] INFO -- : Rendered shared/_contact_number.erb (0.0ms)
|
67
|
+
I, [2015-08-24T07:36:43.694000 #19020] INFO -- : Rendered shared/_disclaimer.html.erb (1.0ms)
|
68
|
+
I, [2015-08-24T07:36:43.695000 #19020] INFO -- : Completed 200 OK in 91ms (Views: 34.0ms | ActiveRecord: 4.0ms)
|
69
|
+
I, [2015-08-24T07:36:45.740000 #19020] INFO -- : Started GET "/users/register" for 50.31.29.217 at 2015-08-24 07:36:45 +0000
|
70
|
+
I, [2015-08-24T07:36:45.746000 #19020] INFO -- : Processing by Users::RegistrationsController#register as */*
|
71
|
+
I, [2015-08-24T07:36:45.806000 #19020] INFO -- : Rendered users/registrations/register.html.erb (46.0ms)
|
72
|
+
I, [2015-08-24T07:36:45.807000 #19020] INFO -- : Completed 200 OK in 61ms (Views: 49.0ms | ActiveRecord: 2.0ms)
|
73
|
+
I, [2015-08-24T07:36:46.187000 #19020] INFO -- : Started GET "/users/edit" for 50.31.29.217 at 2015-08-24 07:36:46 +0000
|
74
|
+
I, [2015-08-24T07:36:46.193000 #19020] INFO -- : Processing by Users::RegistrationsController#edit as */*
|
75
|
+
I, [2015-08-24T07:36:46.272000 #19020] INFO -- : Rendered users/registrations/edit.html.erb (56.0ms)
|
76
|
+
I, [2015-08-24T07:36:46.274000 #19020] INFO -- : Completed 200 OK in 80ms (Views: 59.0ms | ActiveRecord: 3.0ms)
|
metadata
ADDED
@@ -0,0 +1,159 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: log_parser_notifier
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josh Moore
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: request-log-analyzer
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.13.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.13.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: slop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dogstatsd-ruby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.5.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.5.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.3.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.3.0
|
97
|
+
description: Write a longer description. Optional.
|
98
|
+
email:
|
99
|
+
- joshsmoore@gmail.com
|
100
|
+
executables:
|
101
|
+
- log_parser_notifier
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- Gemfile
|
107
|
+
- LICENSE
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- bin/log_parser_notifier
|
112
|
+
- lib/log_parser_notifier.rb
|
113
|
+
- lib/log_parser_notifier/log_reader.rb
|
114
|
+
- lib/log_parser_notifier/rails_request_notifier.rb
|
115
|
+
- lib/log_parser_notifier/version.rb
|
116
|
+
- log_parser_notifier.gemspec
|
117
|
+
- spec/log_reader_spec.rb
|
118
|
+
- spec/rails_request_notifier_spec.rb
|
119
|
+
- spec/spec_helper.rb
|
120
|
+
- spec/support/rails.log
|
121
|
+
- spec/support/rails.log.back
|
122
|
+
- spec/support/rails_log_requests.rb
|
123
|
+
- spec/support/rails_rotated.log
|
124
|
+
- spec/support/rails_with_new_requests.log
|
125
|
+
homepage: ''
|
126
|
+
licenses:
|
127
|
+
- MIT
|
128
|
+
metadata: {}
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
requirements: []
|
144
|
+
rubyforge_project:
|
145
|
+
rubygems_version: 2.4.3
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: A small gem untilizing request-log-analyxer to send request events to logging
|
149
|
+
solutions
|
150
|
+
test_files:
|
151
|
+
- spec/log_reader_spec.rb
|
152
|
+
- spec/rails_request_notifier_spec.rb
|
153
|
+
- spec/spec_helper.rb
|
154
|
+
- spec/support/rails.log
|
155
|
+
- spec/support/rails.log.back
|
156
|
+
- spec/support/rails_log_requests.rb
|
157
|
+
- spec/support/rails_rotated.log
|
158
|
+
- spec/support/rails_with_new_requests.log
|
159
|
+
has_rdoc:
|