log2json 0.1.24 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/log2json/filters/nginx_access.rb +4 -2
- data/log2json.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f2e6e7ae1b36352975616d363bfb5a63e7f3c7
|
4
|
+
data.tar.gz: 1ff4b5a19c9f6a3bf61cae71794b91281696d4e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5134f6de279fd61d01919c60d8d7bb9067c5b42bf1672fc7ce05173bd5260850758f740cf7d56a1104e096206c2d7eaf9313a5dca7615e8eb817c211f02a03df
|
7
|
+
data.tar.gz: db1fe4f8b0662f832a66c555692a73d1db7e6e5e5d14be93645a9993c549d5f3f6f4a0e7af0be1c2d66644abc72f110052e704b12feda200c26429f0a6364c5b
|
@@ -10,7 +10,7 @@ class NginxAccessLogFilter < GrokFilter
|
|
10
10
|
def initialize(name, config={})
|
11
11
|
# Thanks to - http://boojapathy.wordpress.com/2012/04/29/logstash-graylog-cant-ask-more-for-logging/
|
12
12
|
#
|
13
|
-
# 10.
|
13
|
+
# 10.180.129.178 - - [11/Jul/2014:14:10:28 -0400] "GET /api/v1/my_score/events?game_date.in=2014-07-10T05:00:00,2014-07-15T04:59:59&rpp=-1 HTTP/1.1" 200 156 "-" "theScore/3.11 Android-OS/4.4.2 (Android; Phone, SGH-M919)" 0.009 "Bearer pgAXgGYcBz2qYbFzrEhK" "127.0.0.1"
|
14
14
|
#
|
15
15
|
type = config.delete(:type) {'nginx-access'}
|
16
16
|
super(type, name, [
|
@@ -22,7 +22,9 @@ class NginxAccessLogFilter < GrokFilter
|
|
22
22
|
(?:%{NUMBER:size}|-)
|
23
23
|
%{QUOTEDSTRING:referrer}
|
24
24
|
%{QUOTEDSTRING:user_agent}
|
25
|
-
|
25
|
+
%{NUMBER:request_time}
|
26
|
+
(?:%{QUOTEDSTRING:auth_header}|-)
|
27
|
+
(?:%{QUOTEDSTRING:forwarded_for}|-)
|
26
28
|
].join(' ') ], config
|
27
29
|
)
|
28
30
|
end
|
data/log2json.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'log2json'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.25'
|
4
4
|
s.summary = "Read, filter and ship logs. ie, poor man's roll-your-own, light-weight logstash replacement."
|
5
5
|
s.description = IO.read(File.join(File.dirname(__FILE__), 'README'))
|
6
6
|
s.authors = ['Jack Kuan']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log2json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Kuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jls-grok
|