fluent-plugin-http-enhanced 0.0.3 → 0.0.4
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.
- data/README.rdoc +1 -1
- data/fluent-plugin-http-enhanced.gemspec +1 -1
- data/lib/fluent/plugin/in_httpenhanced.rb +3 -6
- metadata +30 -33
data/README.rdoc
CHANGED
@@ -15,7 +15,7 @@ This plugin enables some advanced features on existing HTTP input plugin
|
|
15
15
|
port <port_to_listen>
|
16
16
|
full_query_string_record <true/false> # this will allow request like http://host:port/tag?key1=value1&key2=value2 to be translated to json.
|
17
17
|
respond_with_empty_img <true/false> # this will respond with empty gif image of 1x1 pixel. Its usefull when you use image tags to fire events (like Google Analytics)
|
18
|
-
default_tag
|
18
|
+
default_tag development # this tag will be used if your request has no tag in it eg. http://host:port/?key1=value1&key2=value2
|
19
19
|
</source>
|
20
20
|
|
21
21
|
|
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
|
|
5
5
|
gem.description = "Enhanced HTTP input plugin for Fluent event collector"
|
6
6
|
gem.homepage = "https://github.com/parolkar/fluent-plugin-http-enhanced"
|
7
7
|
gem.summary = gem.description
|
8
|
-
gem.version = "0.0.
|
8
|
+
gem.version = "0.0.4"
|
9
9
|
gem.authors = ["Abhishek Parolkar"]
|
10
10
|
gem.email = "abhishek@parolkar.com"
|
11
11
|
gem.has_rdoc = false
|
@@ -17,12 +17,9 @@ module Fluent
|
|
17
17
|
record = params
|
18
18
|
time = params['time']
|
19
19
|
time ||= params['t']
|
20
|
-
time = time.to_i
|
21
|
-
|
22
|
-
|
23
|
-
if time == 0 || ((time - engine_time.to_i).abs > 1800)
|
24
|
-
#(time - engine_time.to_i).abs > 1800 ensures that the time supplied in the event is not off by 30 mins. This will safe guard situations where devices are reporting incorrect timestamp, such a timestamp is corrected to engine's current time.
|
25
|
-
time = engine_time
|
20
|
+
time = time[0..9].to_i # just make sure that its 10 digits epoch time in seconds not miliseconds
|
21
|
+
if time == 0
|
22
|
+
time = Engine.now
|
26
23
|
end
|
27
24
|
rescue
|
28
25
|
return ["400 Bad Request", {'Content-type'=>'text/plain'}, "400 Bad Request\n#{$!}\n"]
|
metadata
CHANGED
@@ -1,66 +1,63 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-http-enhanced
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Abhishek Parolkar
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-08-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: fluentd
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 0.10.8
|
24
22
|
type: :runtime
|
25
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.10.8
|
26
30
|
description: Enhanced HTTP input plugin for Fluent event collector
|
27
31
|
email: abhishek@parolkar.com
|
28
32
|
executables: []
|
29
|
-
|
30
33
|
extensions: []
|
31
|
-
|
32
34
|
extra_rdoc_files: []
|
33
|
-
|
34
|
-
files:
|
35
|
+
files:
|
35
36
|
- README.rdoc
|
36
37
|
- fluent-plugin-http-enhanced.gemspec
|
37
38
|
- lib/fluent/plugin/in_httpenhanced.rb
|
38
39
|
homepage: https://github.com/parolkar/fluent-plugin-http-enhanced
|
39
40
|
licenses: []
|
40
|
-
|
41
41
|
post_install_message:
|
42
42
|
rdoc_options: []
|
43
|
-
|
44
|
-
require_paths:
|
43
|
+
require_paths:
|
45
44
|
- lib
|
46
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
46
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version:
|
52
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ! '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
52
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
58
57
|
requirements: []
|
59
|
-
|
60
58
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
59
|
+
rubygems_version: 1.8.24
|
62
60
|
signing_key:
|
63
61
|
specification_version: 3
|
64
62
|
summary: Enhanced HTTP input plugin for Fluent event collector
|
65
63
|
test_files: []
|
66
|
-
|