logstash-output-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: a20896835f3ed40fecbd125f5146e634d1bacd40
4
- data.tar.gz: 0f6440bedff853ddda5d0fcb1f852c4d7450eaff
3
+ metadata.gz: a25ad8b80f9c07355c78a85326fcca885e67d739
4
+ data.tar.gz: 332c355b577a8876e3b8dd77bd8322d1479ca0c1
5
5
  SHA512:
6
- metadata.gz: f38c2136f52d10b7c95897d2c6982beb05e3c1c80d83abc41adaf2f1f39c40e53bf5a0f54b7836d84c2d02bca2dca00a4b87ac01022f687ca65ff8fe0446a43e
7
- data.tar.gz: d5868224a493d3cd30c16f1606fa19ff41734c6e9485d2342932509d1e6fb0abfb97acd837d0c0140148e7988c26acb84da8fe1c2561d881e761fbe1803e50e2
6
+ metadata.gz: d490865b12e382522d1985d275a8f7b10f38cd8bab49961bd24c0024ffdb8843fe4501cf32c5ae8d08307ee8d01cd8065f212f620df16895ce8ffb6efbf04ec3
7
+ data.tar.gz: 549bfc413b647fb53e2e5c0e1bc0ee66bd0553f1ac090d3cba5f6703e4ec7e4fb6f32cbe3fe34e22ac126a1a55bddf814d18ec25647992f0a0278db231b5d04b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.3.1
2
+ * Performance optimization for large key_names list scenario - [Issue#10](https://github.com/yokawasa/logstash-output-azure_loganalytics/issues/10)
3
+
1
4
  ## 0.3.0
2
5
  * Support `key_types` param - [Issue#8](https://github.com/yokawasa/logstash-output-azure_loganalytics/issues/8)
3
6
  * Support custom log analytics API endpoint (for supporting Azure sovereign cloud) - [Issue#9](https://github.com/yokawasa/logstash-output-azure_loganalytics/issues/9)
data/README.md CHANGED
@@ -43,8 +43,6 @@ output {
43
43
  > [NOTE] There is a special param for changing the Log Analytics API endpoint (mainly for supporting Azure sovereign cloud)
44
44
  > * **endpoint (optional)** - Default: ods.opinsights.azure.com
45
45
 
46
- Support custom log analytics API endpoint (for supporting Azure sovereign cloud)
47
-
48
46
  ## Tests
49
47
 
50
48
  Here is an example configuration where Logstash's event source and destination are configured as Apache2 access log and Azure Log Analytics respectively.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -88,7 +88,9 @@ class LogStash::Outputs::AzureLogAnalytics < LogStash::Outputs::Base
88
88
  document = {}
89
89
  event_hash = event.to_hash()
90
90
  if @key_names.length > 0
91
- @key_names.each do |key|
91
+ # Get the intersection of key_names and keys of event_hash
92
+ keys_intersection = @key_names & event_hash.keys
93
+ keys_intersection.each do |key|
92
94
  if event_hash.include?(key)
93
95
  if @key_types.include?(key)
94
96
  document[key] = convert_value(@key_types[key], event_hash[key])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-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: 2019-06-14 00:00:00.000000000 Z
11
+ date: 2019-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement