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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3e168378db61e52503c7a5642fe792573beffed
4
- data.tar.gz: c60bb1c1af3213c9f6c2cd049060da0aabb88aa0
3
+ metadata.gz: f9f2e6e7ae1b36352975616d363bfb5a63e7f3c7
4
+ data.tar.gz: 1ff4b5a19c9f6a3bf61cae71794b91281696d4e9
5
5
  SHA512:
6
- metadata.gz: 0fc5c89b98cbff2bfcb8ebb6d2af702e3be88fa09e4c8e655ef700d34907ef57867ccdbb6f46f4a7bde140bdd82fd6c1df314d10341942ddcae5d29cbccb2396
7
- data.tar.gz: 2ca8e93b7e69d28fa69c05ca8706133eef204e12e5703300f7c690916d01cff925ff2b47812c416bdc0c99cc33dbe0e25b90c1e72d3de886bde4cd83d5f3363a
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.33.158.237 - - [12/Apr/2013:13:27:54 -0000] "GET /UEFA/news.json?blackberry_native_version=1.9.4&locale=es HTTP/1.1" 200 6495 "-" "-" "-" "-" "-" cache_status:BYPASS
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
- (?:%{GREEDYDATA:extra_info})
25
+ %{NUMBER:request_time}
26
+ (?:%{QUOTEDSTRING:auth_header}|-)
27
+ (?:%{QUOTEDSTRING:forwarded_for}|-)
26
28
  ].join(' ') ], config
27
29
  )
28
30
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'log2json'
3
- s.version = '0.1.24'
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.24
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-06-23 00:00:00.000000000 Z
11
+ date: 2014-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jls-grok