fluent-plugin-parse_cookie 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +4 -4
- data/lib/fluent/plugin/out_parse_cookie.rb +3 -3
- data/lib/fluent/plugin/parse_cookie/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1f123f53af11b19c6757eedd4403c47573bbec
|
4
|
+
data.tar.gz: bd28f11bb1961f4b73fd8c7f132aaaa0cf1f51e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef95170bf55a2edf252427e283ae219a2bda9ea990ea9671e009143b0eb47479b4a2e39b437eddb5ec0df0eb3351f3e19b8597e9324a686a94709d07876c65dd
|
7
|
+
data.tar.gz: 550322b83383b2a136a141ffcce22da1177c3bf24f9a6bffe4638d1837ff1e907ccb37437100aeb2ece606281041a3e4c7fe5f837a81841e9ab7ea5eaabd3bf0
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
## Fluent::Plugin::ParseCookie, a plugin for [Fluentd](http://fluentd.org)
|
2
2
|
|
3
3
|
Fluentd plugin to parse cookie log.
|
4
4
|
|
@@ -47,7 +47,7 @@ change tag prefix (default tag prefix is "parsed_cookie.")
|
|
47
47
|
type parse_cookie
|
48
48
|
key cookie
|
49
49
|
tag_prefix changed.
|
50
|
-
|
50
|
+
|
51
51
|
</match>
|
52
52
|
|
53
53
|
input
|
@@ -152,11 +152,11 @@ You must be this option setting true.
|
|
152
152
|
Default value is false.
|
153
153
|
|
154
154
|
## Change log
|
155
|
-
See [CHANGELOG.md](https://github.com/
|
155
|
+
See [CHANGELOG.md](https://github.com/h-michael-z/fluent-plugin-parse_cookie/blob/master/CHANGELOG.md) for details.
|
156
156
|
|
157
157
|
## Contributing
|
158
158
|
|
159
|
-
1. Fork it ( https://github.com/
|
159
|
+
1. Fork it ( https://github.com/h-michael-z/fluent-plugin-parse_cookie/fork )
|
160
160
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
161
161
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
162
162
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -9,7 +9,7 @@ module Fluent
|
|
9
9
|
|
10
10
|
def initialize
|
11
11
|
super
|
12
|
-
require '
|
12
|
+
require 'cgi'
|
13
13
|
end
|
14
14
|
|
15
15
|
# Define `log` method for v0.10.42 or earlier
|
@@ -47,10 +47,10 @@ module Fluent
|
|
47
47
|
if record[key]
|
48
48
|
parsed_cookie = CGI::Cookie.parse(record[key])
|
49
49
|
hash = {}
|
50
|
-
parsed_cookie.each do |k,array|
|
50
|
+
parsed_cookie.each do |k,array|
|
51
51
|
hash.merge!({k => array.select {|v| v.class == String }})
|
52
52
|
end
|
53
|
-
|
53
|
+
|
54
54
|
hash = hash.select {|k, v| v != []} if remove_empty_array == true
|
55
55
|
|
56
56
|
if single_value_to_string == true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-parse_cookie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hirokazu Hata
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -181,3 +181,4 @@ summary: Fluentd plugin to parse cookie
|
|
181
181
|
test_files:
|
182
182
|
- test/helper.rb
|
183
183
|
- test/plugin/test_out_parse_cookie.rb
|
184
|
+
has_rdoc:
|