fluent-plugin-viaq_data_model 0.0.21 → 0.0.22

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbe4139e57813f44bb6a18d68ff720ce1f6ea5faac0a67d20e001210e01d8c80
4
- data.tar.gz: 617ebea9745c86549a26db46a88576fde34ef08e43f165ca0da2864d133854f7
3
+ metadata.gz: 55759291117eb3ad0182d30e34836e3cbc31cddd55a012d1e5137b5d739419f5
4
+ data.tar.gz: 6e73dcb38f20035496adb831a69e6dd987101009aac0f0e0b68b2a3e930e6330
5
5
  SHA512:
6
- metadata.gz: 93a8c658581f71116b9bc053d45ecad028092b210c569877bde0e5c395f091503028ccdb3600865e5e0dcdfcf12ebb2cde25c8945210089e7bbe566bd2935c81
7
- data.tar.gz: '0831689e1814494e0c6e4eccb25169cef00f7b5cdee3a38c6eb59de8344b6ede98ac38a68bc528c28ca3f5892ccfe99ef45e54f02d9faf943f609faab1f8a8d2'
6
+ metadata.gz: 0c69da85e8adf14ccd27e505ab4ff5961b0d974feb3e4a13d62ac34b7a92c9778fa1138cd9ae60570e822604ab8f47140a94d15b9e8ea9652f63f484fc5441bd
7
+ data.tar.gz: f0007b86d6788ee15bdcc8e588c7278eb4d30b518a22feadf0c886883fefee30a3cf06e70ab8d6bf4ca0e216b7cf7477c6f36ea7a5a92fc2802cecfe037f10dd
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "fluent-plugin-viaq_data_model"
7
- gem.version = "0.0.21"
7
+ gem.version = "0.0.22"
8
8
  gem.authors = ["Rich Megginson"]
9
9
  gem.email = ["rmeggins@redhat.com"]
10
10
  gem.description = %q{Filter plugin to ensure data is in the ViaQ common data model}
@@ -135,6 +135,8 @@ module Fluent
135
135
  # tag "**"
136
136
  # name_type project_full
137
137
  # </elasticsearch_index_name>
138
+ # audit_full - ".audit.YYYY.MM.DD"
139
+ # audit_prefix - ".audit"
138
140
  # operations_full - ".operations.YYYY.MM.DD"
139
141
  # operations_prefix - ".operations"
140
142
  # project_full - "project.${kubernetes.namespace_name}.${kubernetes.namespace_id}.YYYY.MM.DD"
@@ -148,7 +150,7 @@ module Fluent
148
150
  desc 'create index names for records with this tag pattern'
149
151
  config_param :tag, :string
150
152
  desc 'type of index name to create'
151
- config_param :name_type, :enum, list: [:operations_full, :project_full, :operations_prefix, :project_prefix]
153
+ config_param :name_type, :enum, list: [:operations_full, :project_full, :operations_prefix, :project_prefix, :audit_full, :audit_prefix]
152
154
  end
153
155
  desc 'Store the Elasticsearch index name in this field'
154
156
  config_param :elasticsearch_index_name_field, :string, default: 'viaq_index_name'
@@ -390,7 +392,7 @@ module Fluent
390
392
  if ein.matcher.match(tag)
391
393
  found = true
392
394
  return unless ein.enabled
393
- if ein.name_type == :operations_full || ein.name_type == :project_full
395
+ if ein.name_type == :operations_full || ein.name_type == :project_full || ein.name_type == :audit_full
394
396
  field_name = @elasticsearch_index_name_field
395
397
  need_time = true
396
398
  else
@@ -399,6 +401,8 @@ module Fluent
399
401
  end
400
402
 
401
403
  case ein.name_type
404
+ when :audit_full, :audit_prefix
405
+ prefix = ".audit"
402
406
  when :operations_full, :operations_prefix
403
407
  prefix = ".operations"
404
408
  when :project_full, :project_prefix
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-viaq_data_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Megginson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-17 00:00:00.000000000 Z
11
+ date: 2019-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd