fluent-plugin-azure-loganalytics 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57ab3bae479504ce91c4deee0c6bad550af7fd26
4
- data.tar.gz: 3fd0fc1df4b7f30ccbc0a6e5cfc682faba7a2861
3
+ metadata.gz: b312ebea1de59bae4bc49210d65b1a8314edc225
4
+ data.tar.gz: a73eaccd5388ade37c58eefba7ac8f6f7dc8d989
5
5
  SHA512:
6
- metadata.gz: 68477c13d879c7a932a6d8199472148ea17201b9b7f73c19d3adaa7a88612811d62c03fa41acf8bdd2ac63b36f19b019ee064105215705a9c35c6f9f21ac3f17
7
- data.tar.gz: '0319e82f2f7ede315c91a6d863d06fe4d9548d119541e08e2bb0c47bf7d8709cfebd74b3c943f638e8a45765e53b935d0becd54cf5755432a920be7b2132bc31'
6
+ metadata.gz: 7efc7b88b43025f3d49a67178e1538df0b7e5970d8ebb69fcbf6578c432f0c5dd2f30c2fb99736b83de34d2e8b1095c1c3d27ae8bd581d8418de388f5f4a5807
7
+ data.tar.gz: cc066b03aa2d1f3e836846fbc377aeeaceccca2e51e98de73270ab25657b77d6c5b6def784b17f5aed1cf4136585c9016c2255b0a137ab843ee13569cf17f516
@@ -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
  ![fluent-plugin-azure-loganalytics overview](https://github.com/yokawasa/fluent-plugin-azure-loganalytics/raw/master/img/Azure-LogAnalytics-Fluentd.png)
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.0
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 Functions output plugin for Fluentd}
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.0
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-06-01 00:00:00.000000000 Z
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 Functions output plugin for Fluentd
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 Functions output plugin for Fluentd
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