fluent-plugin-azure-loganalytics 0.3.0 → 0.3.1
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 +5 -0
- data/README.md +8 -1
- data/VERSION +1 -1
- data/fluent-plugin-azure-loganalytics.gemspec +1 -1
- data/lib/fluent/plugin/out_azure-loganalytics.rb +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b312ebea1de59bae4bc49210d65b1a8314edc225
|
|
4
|
+
data.tar.gz: a73eaccd5388ade37c58eefba7ac8f6f7dc8d989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7efc7b88b43025f3d49a67178e1538df0b7e5970d8ebb69fcbf6578c432f0c5dd2f30c2fb99736b83de34d2e8b1095c1c3d27ae8bd581d8418de388f5f4a5807
|
|
7
|
+
data.tar.gz: cc066b03aa2d1f3e836846fbc377aeeaceccca2e51e98de73270ab25657b77d6c5b6def784b17f5aed1cf4136585c9016c2255b0a137ab843ee13569cf17f516
|
data/ChangeLog.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## 0.3.1
|
|
2
|
+
|
|
3
|
+
* Add requirements section - [PR#2](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/pull/2)
|
|
4
|
+
* Add log_type characters check as log_type only supports alpha characters - [Issue#3](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/issues/3)
|
|
5
|
+
|
|
1
6
|
## 0.3.0
|
|
2
7
|
|
|
3
8
|
* Migrate to use fluentd v0.14 API - [PR#1](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/pull/1)
|
data/README.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|

|
|
5
5
|
|
|
6
|
+
## Requirements
|
|
7
|
+
|
|
8
|
+
| fluent-plugin-azure-loganalytics | fluentd | ruby |
|
|
9
|
+
|------------------------|---------|------|
|
|
10
|
+
| >= 0.3.0 | >= v0.14.15 | >= 2.1 |
|
|
11
|
+
| < 0.3.0 | >= v0.12.0 | >= 1.9 |
|
|
12
|
+
|
|
6
13
|
## Installation
|
|
7
14
|
```
|
|
8
15
|
$ gem install fluent-plugin-azure-loganalytics
|
|
@@ -37,7 +44,7 @@ Once you have the workspace, get Workspace ID and Shared Key (either Primary Key
|
|
|
37
44
|
|
|
38
45
|
* **customer\_id (required)** - Your Operations Management Suite workspace ID
|
|
39
46
|
* **shared\_key (required)** - The primary or the secondary Connected Sources client authentication key
|
|
40
|
-
* **log\_type (required)** - The name of the event type that is being submitted to Log Analytics
|
|
47
|
+
* **log\_type (required)** - The name of the event type that is being submitted to Log Analytics. log_type only supports alpha characters
|
|
41
48
|
* **time\_generated\_field (optional)** - Default:''(empty string) The name of the time generated field. Be carefule that the value of field should strictly follow the ISO 8601 format (YYYY-MM-DDThh:mm:ssZ). See also [this](https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-data-collector-api#create-a-request) for more details
|
|
42
49
|
* **add\_time\_field (optional)** - Default:true. This option allows to insert a time field to record
|
|
43
50
|
* **time\_field\_name (optional)** - Default:time. This is required only when add_time_field is true
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
|
|
|
7
7
|
gem.version = File.read("VERSION").strip
|
|
8
8
|
gem.authors = ["Yoichi Kawasaki"]
|
|
9
9
|
gem.email = ["yoichi.kawasaki@outlook.com"]
|
|
10
|
-
gem.summary = %q{Azure
|
|
10
|
+
gem.summary = %q{Azure Log Analytics output plugin for Fluentd}
|
|
11
11
|
gem.description = gem.summary
|
|
12
12
|
gem.homepage = "http://github.com/yokawasa/fluent-plugin-azure-loganalytics"
|
|
13
13
|
gem.license = "Apache-2.0"
|
|
@@ -17,7 +17,7 @@ module Fluent::Plugin
|
|
|
17
17
|
config_param :shared_key, :string, :secret => true,
|
|
18
18
|
:desc => "The primary or the secondary Connected Sources client authentication key"
|
|
19
19
|
config_param :log_type, :string,
|
|
20
|
-
:desc => "The name of the event type that is being submitted to Log Analytics"
|
|
20
|
+
:desc => "The name of the event type that is being submitted to Log Analytics. log_type only alpha characters"
|
|
21
21
|
config_param :time_generated_field, :string, :default => '',
|
|
22
22
|
:desc => "The name of the time generated field. Be carefule that the value of field should strictly follow the ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)"
|
|
23
23
|
config_param :add_time_field, :bool, :default => true,
|
|
@@ -44,6 +44,9 @@ module Fluent::Plugin
|
|
|
44
44
|
raise Fluent::ConfigError, 'no customer_id' if @customer_id.empty?
|
|
45
45
|
raise Fluent::ConfigError, 'no shared_key' if @shared_key.empty?
|
|
46
46
|
raise Fluent::ConfigError, 'no log_type' if @log_type.empty?
|
|
47
|
+
if not @log_type.match(/^[[:alpha:]]+$/)
|
|
48
|
+
raise Fluent::ConfigError, 'log_type supports only alpha characters'
|
|
49
|
+
end
|
|
47
50
|
if @add_time_field and @time_field_name.empty?
|
|
48
51
|
raise Fluent::ConfigError, 'time_field_name must be set if add_time_field is true'
|
|
49
52
|
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.3.
|
|
4
|
+
version: 0.3.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: 2017-
|
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|
|
@@ -100,7 +100,7 @@ dependencies:
|
|
|
100
100
|
- - ">="
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
102
|
version: '0'
|
|
103
|
-
description: Azure
|
|
103
|
+
description: Azure Log Analytics output plugin for Fluentd
|
|
104
104
|
email:
|
|
105
105
|
- yoichi.kawasaki@outlook.com
|
|
106
106
|
executables: []
|
|
@@ -144,7 +144,7 @@ rubyforge_project:
|
|
|
144
144
|
rubygems_version: 2.5.2
|
|
145
145
|
signing_key:
|
|
146
146
|
specification_version: 4
|
|
147
|
-
summary: Azure
|
|
147
|
+
summary: Azure Log Analytics output plugin for Fluentd
|
|
148
148
|
test_files:
|
|
149
149
|
- test/helper.rb
|
|
150
150
|
- test/plugin/test_azure_loganalytics.rb
|