fluent-plugin-lm-logs-gcp 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: 05a8a2120e8eee056999b25aab7d56ed8dc7c14abc60c6f66a1d8dd92975dfcf
4
- data.tar.gz: c37ede1a847c00c1640ab41d9077cdb1ab6c2ad56d55abd33090ed5c3618282f
3
+ metadata.gz: 8fa80af2c5d4c94e6997fd770c42c45160b7ea2348ef39d30d7cbff31d774eb4
4
+ data.tar.gz: bdecae119e5d62ec47aa95486757e55bab5a5fac4f2d11abff003488c717d8cb
5
5
  SHA512:
6
- metadata.gz: 543af75d4d79de61ba51866d8df21ae6ab25d9aebced7032c8f3df00e2d1125012ccd4585829da8f189a1139a9c0743a1eafaa8b469b78d5bcabe8d69722b046
7
- data.tar.gz: df917d5b650d76f24b940dea9ec9308502b8d1ffa1a72b00145c350910b52c3d586641e729bd60cf7762be3e09a36fd723afd0f0922c7d37d550617a5af86379
6
+ metadata.gz: a87ab7ea7267c820609f9710b10ea1b0f812cb7e7c39aa4a75ee4e4b8b0a75bf36a58745d6f9be02f699f96956328bae19fa9e70e873a5ffea28d44a4ea3cb36
7
+ data.tar.gz: ba57fd1f6ea7f7b64d0525a39f826c5d1f8a5ca8fb44289dede47fc292906b3fb7a5912ff51792edc3647c0245f3ab4c87849741b162eb8355fd109e7e063aee
data/README.md CHANGED
@@ -4,4 +4,6 @@ This filter plugin is provided for mapping the logs coming from GCP pubsub to '_
4
4
  * Google Cloud Functions
5
5
  * Google Cloud SQL
6
6
  * Google Audit Logs
7
+ * Google Cloud Composer
8
+ * Google Cloud Run
7
9
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "fluent-plugin-lm-logs-gcp"
8
- spec.version = '1.0.3'
8
+ spec.version = '1.0.4'
9
9
  spec.authors = ["LogicMonitor"]
10
10
  spec.email = "rubygems@logicmonitor.com"
11
11
  spec.summary = "LogicMonitor with GCP logs fluentd filter plugin"
@@ -67,9 +67,11 @@ module Fluent::Plugin
67
67
  end
68
68
 
69
69
  if(record.key?("protoPayload") && record.dig('protoPayload', '@type') == "type.googleapis.com/google.cloud.audit.AuditLog")
70
- resourceMap = {"system.gcp.projectId" => project_id, "system.cloud.category" => 'GCP/LMAccount'}
70
+ resourceMap = {"system.cloud.category" => 'GCP/LMAccount'}
71
71
  end
72
72
 
73
+
74
+ resourceMap['system.gcp.projectId'] = project_id if !resourceMap.empty?
73
75
  # Creating a new record which is further sent to LM
74
76
  filteredRecord['message'] = message
75
77
  filteredRecord['_lm.resourceId'] = resourceMap
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-lm-logs-gcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LogicMonitor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-20 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.2.22
68
+ rubygems_version: 3.3.26
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: LogicMonitor with GCP logs fluentd filter plugin