logstash-filter-split_otlp_resourcelogs 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a2613fd5b7eaf95ce36ab042e973c8b5e4d98ad1e9b831e47c3201a8c21161d5
4
+ data.tar.gz: 59ba1eb4eefc52c543572f6d6cb5fb8acd9560d73ba85222cd213572093febea
5
+ SHA512:
6
+ metadata.gz: d0ea88871643afb2c7db906a165c8a7daa332f78e2f67e183311c4843604905c82f22781c5a72d10a7c1f4876883ff0b9b52199547de66db1ed4b1f155e9db52
7
+ data.tar.gz: '003822ec8b7da0ead0e8486bb158b531dbed3067202601acc591b3d3e1ab495320fb33c94d3d24a06664973a3a7811613f974442a7b8f1eb2a095631ae9a5fee'
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## 0.1.0
2
+ - Plugin created with the logstash plugin generator
3
+
4
+ ## 0.2.0
5
+ - Initial implementation
data/CONTRIBUTORS ADDED
@@ -0,0 +1,10 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * Ryan Bartsch - rbartsch@yandex.com
6
+
7
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
8
+ Logstash, and you aren't on the list above and want to be, please let us know
9
+ and we'll make sure you're here. Contributions from folks like you are what make
10
+ open source awesome.
data/DEVELOPER.md ADDED
@@ -0,0 +1,2 @@
1
+ # logstash-filter-split_otlp_resourcelogs
2
+ Example filter plugin. This should help bootstrap your effort to write your own filter plugin!
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
3
+
4
+ logstash_path = ENV['LOGSTASH_PATH'] || '/usr/share/logstash'
5
+
6
+ if Dir.exist?(logstash_path)
7
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
8
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
9
+ end
10
+
data/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Licensed under the Apache License, Version 2.0 (the "License");
2
+ you may not use this file except in compliance with the License.
3
+ You may obtain a copy of the License at
4
+
5
+ http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # Logstash Plugin
2
+
3
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
4
+
5
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
6
+
7
+ ## Documentation
8
+
9
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
10
+
11
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
12
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
13
+
14
+ ## Need Help?
15
+
16
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
17
+
18
+ ## Developing
19
+
20
+ ### 1. Plugin Developement and Testing
21
+
22
+ #### Code
23
+ - To get started, you'll need JRuby with the Bundler gem installed.
24
+
25
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
26
+
27
+ - Install dependencies
28
+ ```sh
29
+ bundle install
30
+ ```
31
+
32
+ #### Test
33
+
34
+ - Update your dependencies
35
+
36
+ ```sh
37
+ bundle install
38
+ ```
39
+
40
+ - Run tests
41
+
42
+ ```sh
43
+ bundle exec rspec
44
+ ```
45
+
46
+ ### 2. Running your unpublished Plugin in Logstash
47
+
48
+ #### 2.1 Run in a local Logstash clone
49
+
50
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
51
+ ```ruby
52
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
53
+ ```
54
+ - Install plugin
55
+ ```sh
56
+ bin/logstash-plugin install --no-verify
57
+ ```
58
+ - Run Logstash with your plugin
59
+ ```sh
60
+ bin/logstash -e 'filter {awesome {}}'
61
+ ```
62
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
63
+
64
+ #### 2.2 Run in an installed Logstash
65
+
66
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
67
+
68
+ - Build your plugin gem
69
+ ```sh
70
+ gem build logstash-filter-awesome.gemspec
71
+ ```
72
+ - Install the plugin from the Logstash home
73
+ ```sh
74
+ bin/logstash-plugin install /your/local/plugin/logstash-filter-awesome.gem
75
+ ```
76
+ - Start Logstash and proceed to test the plugin
77
+
78
+ ## Contributing
79
+
80
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
81
+
82
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
83
+
84
+ It is more important to the community that you are able to contribute.
85
+
86
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/main/CONTRIBUTING.md) file.
@@ -0,0 +1,70 @@
1
+ # encoding: utf-8
2
+ require "logstash/codecs/base"
3
+ require "logstash/json"
4
+ require "logstash/event"
5
+ require "json"
6
+ require "jsonpath"
7
+
8
+ class LogStash::Filters::SplitOtlpResourcelogs < LogStash::Filters::Base
9
+
10
+ config_name "split_otlp_resourcelogs"
11
+
12
+ config :remove_resourcelogs, :validate => :boolean, :default => true
13
+
14
+ config :remove_original, :validate => :boolean, :default => false
15
+
16
+ config :nested_data_field, :validate => :string, :default => "$..logRecords[*].body.stringValue"
17
+
18
+ def register
19
+ end
20
+
21
+ def filter(event)
22
+
23
+ # puts "received: #{event}\r\n"
24
+ # puts "received class: #{event.class}\r\n"
25
+
26
+ json = event.to_json
27
+ # puts "json: #{json}\r\n"
28
+
29
+ results = JsonPath.new(@nested_data_field).on(json)
30
+ # puts "results: #{results}\r\n"
31
+ # puts "results class: #{results.class}\r\n"
32
+
33
+ return if results.empty?
34
+
35
+ results.each do |result|
36
+
37
+ # puts "result: #{result}\r\n"
38
+ # puts "result class: #{result.class}\r\n"
39
+
40
+ # some syslogs come through with some text before the json string
41
+ refined = "[#{result.match(/\{.*\}$/)[0].gsub(/\}\{/,'},{')}]"
42
+ # puts "refined: #{refined}\r\n"
43
+ # puts "refined class: #{refined.class}\r\n"
44
+
45
+ JSON.parse(refined).each do |item|
46
+
47
+ # puts "item: #{item}\r\n"
48
+ # puts "item class: #{item.class}\r\n"
49
+
50
+ event_split = event.clone
51
+ item.each do |key, value|
52
+ # puts "key: #{key}, value: #{value}\r\n"
53
+ event_split.set(key, value) unless key.downcase == "timestamp"
54
+ end
55
+ event_split.remove('resourceLogs') if @remove_resourcelogs
56
+ event_split.remove('event') if @remove_original
57
+ filter_matched(event_split)
58
+
59
+ yield event_split
60
+
61
+ end
62
+
63
+ end
64
+
65
+ # Cancel this event, we'll use the newly generated ones above.
66
+ event.cancel
67
+
68
+ end
69
+
70
+ end
@@ -0,0 +1,26 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'logstash-filter-split_otlp_resourcelogs'
3
+ s.version = '0.2.0'
4
+ s.licenses = ['Apache-2.0']
5
+ s.summary = 'Logstash Filter Plugin for Splitting OTLP resourceLogs'
6
+ s.description = 'Splits OTLP/JSON formatted content, creating a new event per log record.'
7
+ s.homepage = 'https://github.com/yesmarket/logstash-filter-split_otlp_resourcelogs'
8
+ s.authors = ['Ryan Bartsch']
9
+ s.email = 'rbartsch@yandex.com'
10
+ s.require_paths = ['lib']
11
+
12
+ # Files
13
+ s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ # Tests
15
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
16
+
17
+ # Special flag to let us know this is actually a logstash plugin
18
+ s.metadata = { "logstash_plugin" => "true", "logstash_group" => "filter" }
19
+
20
+ # Gem dependencies
21
+ s.add_runtime_dependency "jsonpath", "~> 1.1"
22
+ s.add_runtime_dependency 'logstash-core-plugin-api', "~> 2.0"
23
+ s.add_runtime_dependency 'logstash-codec-json'
24
+ s.add_development_dependency 'logstash-devutils'
25
+ s.add_development_dependency 'insist'
26
+ end
@@ -0,0 +1,43 @@
1
+ # encoding: utf-8
2
+ require_relative '../spec_helper'
3
+ require "insist"
4
+ require "logstash/filters/split_otlp_resourcelogs"
5
+
6
+ describe LogStash::Filters::SplitOtlpResourcelogs do
7
+ describe "defaults" do
8
+ let(:config) do <<-CONFIG
9
+ filter {
10
+ split_otlp_resourcelogs { }
11
+ }
12
+ CONFIG
13
+ end
14
+
15
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.0985210+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDH:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDH\",\"SpanId\":\"33583c8b7e163183\",\"TraceId\":\"c9a016f16f48d8f7427901c93ebba027\",\"ParentId\":\"1d50635029725adf\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]}]}]}) do
16
+ insist { subject.get("MessageTemplate") } == "qwerty12345"
17
+ end
18
+
19
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"timeUnixNano" => "1688598277000000000","observedTimeUnixNano" => "1688598277330892906","severityNumber" => 9,"severityText" => "info","body" => {"stringValue" => "<134>Jul 5 23:04:37 localhost node[18]: {\"level\":\"info\",\"message\":\"asdfgh12345\",\"span_id\":\"a2c6a2e800953268\",\"timestamp\":\"2023-07-05T23:04:37.320Z\",\"trace_flags\":\"01\",\"trace_id\":\"93e41c63c6eacaab680f0a7a765e03b1\"}"},"attributes" => [{"key" => "proc_id","value" => {"stringValue" => "18"}},{"key" => "priority","value" => {"intValue" => "134"}},{"key" => "facility","value" => {"intValue" => "16"}},{"key" => "hostname","value" => {"stringValue" => "localhost"}},{"key" => "appname","value" => {"stringValue" => "node"}},{"key" => "message","value" => {"stringValue" => "{\"level\":\"info\",\"message\":\"asdfgh12345\",\"span_id\":\"a2c6a2e800953268\",\"timestamp\":\"2023-07-05T23:04:37.320Z\",\"trace_flags\":\"01\",\"trace_id\":\"93e41c63c6eacaab680f0a7a765e03b1\"}"}}],"traceId" => "","spanId" => ""}]}]}]}) do
20
+ insist { subject.get("message") } == "asdfgh12345"
21
+ end
22
+
23
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.2907908+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDI:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDI\",\"SpanId\":\"5c4420a002d6c987\",\"TraceId\":\"93e41c63c6eacaab680f0a7a765e03b1\",\"ParentId\":\"76943c73f2bec60c\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""},{"observedTimeUnixNano" => "1688598277293414673","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.2907908+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDI:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDI\",\"SpanId\":\"5c4420a002d6c987\",\"TraceId\":\"93e41c63c6eacaab680f0a7a765e03b1\",\"ParentId\":\"76943c73f2bec60c\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]}]}]}) do
24
+ insist { subject.length } == 2
25
+ end
26
+
27
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598278119068238","body" => {"stringValue" => "{\"timestamp\":\"2023-07-05T23:04:35.421Z\",\"level\":\"INFO\",\"thread\":\"http-nio-5001-exec-3\",\"mdc\":{\"trace_id\":\"9e3cbaf255fe6ea6a7964cd859905557\",\"trace_flags\":\"01\",\"span_id\":\"c6d89e23862bbf21\"},\"logger\":\"com.demo.javaapi.controllers.StudentController\",\"message\":\"requested student with id: 1\",\"context\":\"default\"}{\"timestamp\":\"2023-07-05T23:04:35.683Z\",\"level\":\"INFO\",\"thread\":\"http-nio-5001-exec-5\",\"mdc\":{\"trace_id\":\"09ac6396ec6bfeee737b052d5146839c\",\"trace_flags\":\"01\",\"span_id\":\"c608cad9918228dc\"},\"logger\":\"com.demo.javaapi.controllers.StudentController\",\"message\":\"requested student with id: 1\",\"context\":\"default\"}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log.txt"}}],"traceId" => "","spanId" => ""}]}]}]}) do
28
+ insist { subject.length } == 2
29
+ end
30
+
31
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.0985210+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDH:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDH\",\"SpanId\":\"33583c8b7e163183\",\"TraceId\":\"c9a016f16f48d8f7427901c93ebba027\",\"ParentId\":\"1d50635029725adf\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]}]},{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.0985210+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDH:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDH\",\"SpanId\":\"33583c8b7e163183\",\"TraceId\":\"c9a016f16f48d8f7427901c93ebba027\",\"ParentId\":\"1d50635029725adf\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]}]}]}) do
32
+ insist { subject.length } == 2
33
+ end
34
+
35
+ sample({"resourceLogs" => [{"resource" => {},"scopeLogs" => [{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.0985210+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDH:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDH\",\"SpanId\":\"33583c8b7e163183\",\"TraceId\":\"c9a016f16f48d8f7427901c93ebba027\",\"ParentId\":\"1d50635029725adf\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]},{"scope" => {},"logRecords" => [{"observedTimeUnixNano" => "1688598277293407428","body" => {"stringValue" => "{\"Timestamp\":\"2023-07-05T23:04:37.0985210+00:00\",\"Level\":\"Information\",\"MessageTemplate\":\"qwerty12345\",\"Properties\":{\"SourceContext\":\"dotnet_api.Controllers.StudentsController\",\"ActionId\":\"0c66b901-80ee-49d7-ac0f-3cb623e97c7d\",\"ActionName\":\"dotnet_api.Controllers.StudentsController.Get (dotnet-api)\",\"RequestId\":\"0HMRTLEV2ULDH:00000002\",\"RequestPath\":\"/api/v1/students/1\",\"ConnectionId\":\"0HMRTLEV2ULDH\",\"SpanId\":\"33583c8b7e163183\",\"TraceId\":\"c9a016f16f48d8f7427901c93ebba027\",\"ParentId\":\"1d50635029725adf\"}}"},"attributes" => [{"key" => "log.file.name","value" => {"stringValue" => "log20230705.txt"}}],"traceId" => "","spanId" => ""}]}]}]}) do
36
+ insist { subject.length } == 2
37
+ end
38
+
39
+ sample({"Timestamp" => "2023-07-05T23:04:37.0985210+00:00","Level" => "Information","MessageTemplate" => "qwerty12345","Properties" => {"SourceContext" => "dotnet_api.Controllers.StudentsController","ActionId" => "0c66b901-80ee-49d7-ac0f-3cb623e97c7d","ActionName" => "dotnet_api.Controllers.StudentsController.Get (dotnet-api)","RequestId" => "0HMRTLEV2ULDH:00000002","RequestPath" => "/api/v1/students/1","ConnectionId" => "0HMRTLEV2ULDH","SpanId" => "33583c8b7e163183","TraceId" => "c9a016f16f48d8f7427901c93ebba027","ParentId" => "1d50635029725adf"}}) do
40
+ insist { subject.get("MessageTemplate") } == "qwerty12345"
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,18 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require "logstash/devutils/rspec/spec_helper"
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-filter-split_otlp_resourcelogs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Bartsch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jsonpath
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: logstash-core-plugin-api
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: logstash-codec-json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: logstash-devutils
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: insist
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Splits OTLP/JSON formatted content, creating a new event per log record.
84
+ email: rbartsch@yandex.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - CHANGELOG.md
90
+ - CONTRIBUTORS
91
+ - DEVELOPER.md
92
+ - Gemfile
93
+ - LICENSE
94
+ - README.md
95
+ - lib/logstash/filters/split_otlp_resourcelogs.rb
96
+ - logstash-filter-split_otlp_resourcelogs.gemspec
97
+ - spec/filters/split_otlp_resourcelogs_spec.rb
98
+ - spec/spec_helper.rb
99
+ homepage: https://github.com/yesmarket/logstash-filter-split_otlp_resourcelogs
100
+ licenses:
101
+ - Apache-2.0
102
+ metadata:
103
+ logstash_plugin: 'true'
104
+ logstash_group: filter
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubygems_version: 3.1.4
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: Logstash Filter Plugin for Splitting OTLP resourceLogs
124
+ test_files:
125
+ - spec/filters/split_otlp_resourcelogs_spec.rb
126
+ - spec/spec_helper.rb