logstash-filter-varnishlog 0.1.2 → 0.1.3

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: e1d5430d9891df7eb05a936e6ea8907bfd538491
4
- data.tar.gz: 7c73df4fdfda351524e23f4fc9b3b05e369d63b3
3
+ metadata.gz: 9c587490b315eb4f4ba08b3b0939ab1aa1dfeb18
4
+ data.tar.gz: af652134f06547d55473adc49e115aecae4491bf
5
5
  SHA512:
6
- metadata.gz: 890fc12eb2d59be5950e5b2e5fc6df51adbd20ce4cafc0d4283ba8ab88a36abbc722366585b2ba04e0d6efd842aff86934aaf82612283bccd006fe83de517fb6
7
- data.tar.gz: e4a20a07ae22ebe61cc6dc17bac9acc51867dac7c17436d848147bb234e910a815d6ca5cb2edd3cd0aed42836e53cd6ee7455f1d89ea8306a200fc98763815a9
6
+ metadata.gz: 49ee849a557db8280b346a5a8d03036241676aaddb60f27c3d62dbf7797aef7ab55527eaed37be1373a4ecfc77d5cf273d1b374370de8b746d54c4dee4108729
7
+ data.tar.gz: abe3e596a68e3d1782f846a9f9707d6099d5a60b1a6880588482d12285dee20fd5db92e788cf323803376a5979254eb7f7686022d4962a18e84c9677739d8df5
data/CHANGELOG.md CHANGED
@@ -2,3 +2,6 @@
2
2
  - Plugin created with the logstash plugin generator#
3
3
  ## 0.1.1
4
4
  - Implemented first functions
5
+ ## 0.1.2
6
+ ## 0.1.3
7
+ - FIX: ResponseHeader/RequestHeader-Name should match non greedy
@@ -55,7 +55,7 @@ class LogStash::Filters::Varnishlog < LogStash::Filters::Base
55
55
  ## Request headers.
56
56
  request_headers = items.grep(/ReqHeader/)
57
57
  request_headers.each do |header|
58
- if match = /-\s+ReqHeader\s+(?<header_name>.*): (?<header_value>.*)/.match(header)
58
+ if match = /-\s+ReqHeader\s+(?<header_name>.*?): (?<header_value>.*)/.match(header)
59
59
  event.set(match['header_name'], match['header_value'])
60
60
  end
61
61
  end
@@ -76,7 +76,7 @@ class LogStash::Filters::Varnishlog < LogStash::Filters::Base
76
76
  ## Response headers.
77
77
  response_headers = items.grep(/RespHeader/)
78
78
  response_headers.each do |header|
79
- if match = /-\s+RespHeader\s+(?<header_name>.*): (?<header_value>.*)/.match(header)
79
+ if match = /-\s+RespHeader\s+(?<header_name>.*?): (?<header_value>.*)/.match(header)
80
80
  event.set(match['header_name'], match['header_value'])
81
81
  end
82
82
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-varnishlog'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = 'A logstash plugin reading varnishlog output'
6
6
  s.description = 'logstash filter plugin reading varnishlog grouped by id'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-varnishlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Herweg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement