fluent-plugin-azure-loganalytics 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/docs/install-tdagent-and-the-plugin-on-rhel.md +2 -2
- data/fluent-plugin-azure-loganalytics.gemspec +1 -0
- data/lib/fluent/plugin/out_azure-loganalytics.rb +4 -4
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25a66480b6d507e3b0b1077d990e6eb140ec3e00fe459ef4a95d7214f7df79b7
|
4
|
+
data.tar.gz: 97f21629551c286c99490624a3641aa9d3e34ba971b096cc52d496fc919d08ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e8349a3bb8aec9c6fa292e7055487aa7a17ec288172308f726f1dca2d7eed3abb07d7e5ca388248be2db9c67aa712e51aa49cb06b05d75088002d2cf2e4f7a8
|
7
|
+
data.tar.gz: 8175d34f6d689a839efd6b405688b50de7266f95525b075a2da07ca861ad968a596f57f847e76103ddddbba0731365750590c3166d9071ddbb782bcf9e37f52b
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
+
## 0.4.1
|
2
|
+
|
3
|
+
* Use `yajl` instead of default JSON encoder to fix logging exceptions - [PR#10](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/pull/10)
|
4
|
+
|
1
5
|
## 0.4.0
|
6
|
+
|
2
7
|
* Add endpoint parameter for sovereign cloud - [PR#8](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/pull/8)
|
3
8
|
* Changed dependency for azure-loganalytics-datacollector-api to `>= 0.1.5` - [PR#8](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/pull/8)
|
4
9
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# How to install td-agent and
|
1
|
+
# How to install td-agent and fluent-plugin-azure-loganalytics plugin on RHEL
|
2
2
|
|
3
3
|
This is a quick installation procedure of td-agent and the custom plugin (fluent-plugin-azure-loganalytics) on Red Hat Enterprise Linux (7.4)
|
4
4
|
|
@@ -65,4 +65,4 @@ $ sudo /usr/sbin/td-agent-gem install fluent-plugin-azure-loganalytics
|
|
65
65
|
$ git clone https://github.com/yokawasa/fluent-plugin-azure-loganalytics.git
|
66
66
|
$ cd fluent-plugin-azure-loganalytics
|
67
67
|
$ /opt/td-agent/embedded/bin/rake test
|
68
|
-
```
|
68
|
+
```
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
gem.add_dependency "fluentd", [">= 0.14.15", "< 2"]
|
22
22
|
gem.add_dependency "rest-client"
|
23
|
+
gem.add_dependency "yajl-ruby"
|
23
24
|
gem.add_dependency "azure-loganalytics-datacollector-api", [">= 0.1.5"]
|
24
25
|
gem.add_development_dependency "bundler", "~> 1.11"
|
25
26
|
gem.add_development_dependency "rake", "~> 10.0"
|
@@ -95,12 +95,12 @@ module Fluent::Plugin
|
|
95
95
|
begin
|
96
96
|
res = @client.post_data(@log_type, records, @time_generated_field)
|
97
97
|
if not Azure::Loganalytics::Datacollectorapi::Client.is_success(res)
|
98
|
-
log.fatal "DataCollector API request failure: error code: "
|
99
|
-
|
98
|
+
log.fatal "DataCollector API request failure: error code: " +
|
99
|
+
"#{res.code}, data=>" + Yajl.dump(records)
|
100
100
|
end
|
101
101
|
rescue Exception => ex
|
102
|
-
log.fatal "Exception occured in posting to DataCollector API: "
|
103
|
-
|
102
|
+
log.fatal "Exception occured in posting to DataCollector API: " +
|
103
|
+
"'#{ex}', data=>" + Yajl.dump(records)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-azure-loganalytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoichi Kawasaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: yajl-ruby
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: azure-loganalytics-datacollector-api
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|