fluent-plugin-azuremonitorlog 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile.lock +2 -2
- data/fluent-plugin-azuremonitorlog.gemspec +2 -2
- data/lib/fluent/plugin/in_azuremonitorlog.rb +10 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8be02edd3b3d8bddf6c3c4780595ec421cc2001796b886b2c0984a6cad0e6cdb
|
4
|
+
data.tar.gz: a9f8244b6811f9c2298f506753b9098c7b43bf2d8a58867c00a24a0f225cf458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0f7d8ae3480ec524d97d8a2558df1d7811a46fe4b24b27db5df13256e63ea32f3a80e711f0773249bb671794344c26f916d179cdbd584ea7e3a1194776fca7
|
7
|
+
data.tar.gz: 4717b76da09fcc0e603b9c8ef842e49a191df2b6eb1cf15b0dc689a154df1fb923837769106a9d6cedd12a908ad980a200ed2271b0f3645803fd8e02763330c2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-azuremonitorlog (0.0.
|
4
|
+
fluent-plugin-azuremonitorlog (0.0.2)
|
5
5
|
azure_mgmt_monitor (~> 0.11.0)
|
6
6
|
fluentd (>= 0.10.30)
|
7
7
|
|
@@ -29,7 +29,7 @@ GEM
|
|
29
29
|
strptime (~> 0.1.7)
|
30
30
|
tzinfo (~> 1.0)
|
31
31
|
tzinfo-data (~> 1.0)
|
32
|
-
yajl-ruby (~> 1.
|
32
|
+
yajl-ruby (~> 1.3.1)
|
33
33
|
http-cookie (1.0.3)
|
34
34
|
domain_name (~> 0.5)
|
35
35
|
http_parser.rb (0.6.0)
|
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "fluent-plugin-azuremonitorlog"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.3"
|
8
8
|
gem.authors = ["Ilana Kantorov"]
|
9
9
|
gem.email = ["ilanak@microsoft.com"]
|
10
10
|
gem.description = %q{Input plugin for Azure Monitor Activity logs.}
|
11
|
-
gem.homepage = "https://github.com/
|
11
|
+
gem.homepage = "https://github.com/Azure/fluent-plugin-azureamonitorlog"
|
12
12
|
gem.summary = gem.description
|
13
13
|
gem.files = `git ls-files`.split($\)
|
14
14
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
@@ -72,17 +72,13 @@ class Fluent::AzureMonitorLogInput < Fluent::Input
|
|
72
72
|
private
|
73
73
|
|
74
74
|
def watch
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
sleep @interval
|
79
|
-
end
|
80
|
-
end
|
75
|
+
log.debug "azure monitorlog: watch thread starting"
|
76
|
+
|
77
|
+
@next_fetch_time = Time.now
|
81
78
|
|
82
|
-
|
83
|
-
start_time =
|
84
|
-
end_time =
|
85
|
-
|
79
|
+
until @finished
|
80
|
+
start_time = @next_fetch_time - @interval
|
81
|
+
end_time = @next_fetch_time
|
86
82
|
log.debug "start time: #{start_time}, end time: #{end_time}"
|
87
83
|
filter = "eventTimestamp ge '#{start_time}' and eventTimestamp le '#{end_time}'"
|
88
84
|
|
@@ -100,6 +96,10 @@ class Fluent::AzureMonitorLogInput < Fluent::Input
|
|
100
96
|
else
|
101
97
|
log.debug "empty"
|
102
98
|
end
|
99
|
+
@next_fetch_time += @interval
|
100
|
+
sleep @interval
|
101
|
+
end
|
102
|
+
|
103
103
|
end
|
104
104
|
|
105
105
|
def get_monitor_log_async(filter = nil, custom_headers = nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-azuremonitorlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilana Kantorov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- lib/fluent/plugin/in_azuremonitorlog.rb
|
85
85
|
- test/helper.rb
|
86
86
|
- test/plugin/test_in_azuremonitorlog.rb
|
87
|
-
homepage: https://github.com/
|
87
|
+
homepage: https://github.com/Azure/fluent-plugin-azureamonitorlog
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.7.3
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: Input plugin for Azure Monitor Activity logs.
|