logstash-filter-varnishlog 0.2.1 → 0.2.2

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
- SHA1:
3
- metadata.gz: 3c08d34b9ad5c2eae13c1dd98206da8454e621b4
4
- data.tar.gz: e4d80155ac77d30b1f87ec044451b971a72ce2ed
2
+ SHA256:
3
+ metadata.gz: aab6611b3c969096dc49e9e27731f8058e81bda20087fc113d4949c6c0700fda
4
+ data.tar.gz: bef79f350873bbe4308c46bc6531e548bc93f030c4f58ef575ef0eb9344d6e45
5
5
  SHA512:
6
- metadata.gz: 7a913c38bb62a4d456d4750e4738344732acad406e1316ee654719afb27ef7d30ca52f02d4b1f43a6fb151a037509bd20b55fe8e41d833b23b5a0802fbd2137e
7
- data.tar.gz: 4c8c91d49762da74d81a5ef7942dad4624349ba47a54e17b41022d4ad6fb84d51f7a24c738657dedd01db8deb9c9d22342cdda8100361fb635d92fad38cdf5b9
6
+ metadata.gz: 958ce2506c3154fa5ca4c1773e72e7f9e84732c110c4c7731049a9eebbd5f72fef15cce140c88ddb1a429887337692b5a12e5ae6025b8783b3344808d64a579a
7
+ data.tar.gz: ecf5c95d35d200ef55926cb338d97751bb130eb3f311939606169340be3921674ff1ca96ee2faeacb14ae28d12d282cb84718a1fd232e24ba6b0392ce9c8e588
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 0.2.2
2
+ - Fix Header detection to match only valid Header names regex:[\w-], instead all .+ characters
1
3
  ## 0.2.1
2
4
  - Add xid and begin line
3
5
  - regex performance
@@ -85,7 +85,7 @@ class LogStash::Filters::Varnishlog < LogStash::Filters::Base
85
85
  ## Request headers.
86
86
  request_headers = items.grep(/(Bereq|Req|Beresp|Resp)Header/)
87
87
  request_headers.each do |header|
88
- if match = /-+\s+(Bereq|Req|Beresp|Resp)Header\s+(?<header_name>.+): (?<header_value>.*)/.match(header)
88
+ if match = /-+\s+(Bereq|Req|Beresp|Resp)Header\s+(?<header_name>[\w-]+): (?<header_value>.*)/.match(header)
89
89
  event.set(normalize_fields(match['header_name']), match['header_value'])
90
90
  end
91
91
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-filter-varnishlog'
3
- s.version = '0.2.1'
3
+ s.version = '0.2.2'
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,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-varnishlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-05-09 00:00:00.000000000 Z
11
+ date: 2021-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ~>
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
18
  version: '2.0'
19
19
  name: logstash-core-plugin-api
@@ -21,13 +21,13 @@ dependencies:
21
21
  type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  name: logstash-devutils
@@ -35,7 +35,7 @@ dependencies:
35
35
  type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  description: logstash filter plugin reading varnishlog grouped by id
@@ -80,17 +80,17 @@ require_paths:
80
80
  - lib
81
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>='
83
+ - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.4.5
93
+ rubygems_version: 2.6.13
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: A logstash plugin reading varnishlog output