logstash-output-otlp 0.4.3-java → 0.4.5-java

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: 3ecbc16aeec2da8cd31cdbf469c000c1e93891e556b482a78e85442e518a477b
4
- data.tar.gz: 90b4942118936c2a41836a1584af012811e5bd686eb5568b54e0ada047f1561d
3
+ metadata.gz: '09744888b814abf3aa04088afc8a571d020fd9aacf8236d0ee81a790c18831c2'
4
+ data.tar.gz: 8e870385a96bcdc54a05217b10f4c0f8ced9797e55b0a9c19e69d45ce82c3f7c
5
5
  SHA512:
6
- metadata.gz: c2861d3f3fe53f094dcb18c4c3062479e9e7d0d9a97e5f4b1383b2d8b4bc10c32466b229993dd0b9994250be2873032ecc8b3917ddbfc652fdf2020b85751503
7
- data.tar.gz: e5a127a459d8d3c74a92e27434de5ce97314975d3c8633ef55fe23f67c64b12db9a26721c06c9059d4e1cef957e4f72f72a2e74a2b917ce9bef36b3f9f0b9ef6
6
+ metadata.gz: 88de87a0de90ebe4aefe1081a2836274fa0eea8183aa4ffc6fd688e6c9f8563b2c0b61115cfd6fb75c0ab1584573a467c6c283d224cd8056750b5c8d4e9098eb
7
+ data.tar.gz: 13bf7b82362a5e7ed2e7f9d1de14b4e74a5a8dbfb9acdb71abe1298da38dec1585a87b08c07e3ae58ebaea1f4a1ee26335d4f91383850b682bbed5a287b5f817
data/README.md CHANGED
@@ -23,6 +23,8 @@ All other fields are attached as Attributes.
23
23
 
24
24
  `logstash-plugin install logstash-output-otlp`
25
25
 
26
+ The published gem is available at https://rubygems.org/gems/logstash-output-otlp.
27
+
26
28
  ## Usage
27
29
  ### Basic
28
30
  ```
@@ -67,7 +69,10 @@ output {
67
69
  }
68
70
  ```
69
71
 
70
- ### TLS with Tls Verification Disabled
72
+ ### TLS with TLS Verification Disabled
73
+
74
+ This mode disables server certificate verification and should only be used for local testing.
75
+
71
76
  ```
72
77
  input {
73
78
  generator {
@@ -102,6 +107,7 @@ output {
102
107
  | ssl_disable_tls_verification | [boolean](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#string) | No |
103
108
  | ssl_certificate_authorities | [string](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#string) | No |
104
109
  | resource | [Hash](https://www.elastic.co/guide/en/logstash/latest/configuration-file-structure.html#hash) | No |
110
+ | attributes | [Hash](https://www.elastic.co/guide/en/logstash/latest/configuration-file-structure.html#hash) | No |
105
111
  | body | [Field Reference](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#field-reference) | No |
106
112
  | name | [Field Reference](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#field-reference) | No |
107
113
  | severity_text | [Field Reference](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#field-reference) | No |
@@ -150,7 +156,8 @@ Possible values are `gzip` or `none`
150
156
  - Value type is [boolean](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#string)
151
157
  - Default is: `false`
152
158
 
153
- Use this field when you want to disable tls certificate verification.
159
+ Use this field only when you want to disable TLS certificate verification for local testing.
160
+ When enabled, the plugin trusts any server certificate and logs a warning during startup.
154
161
  The `ssl_certificate_authorities` field is ignored.
155
162
 
156
163
  `ssl_certificate_authorities`
@@ -169,6 +176,15 @@ This field is ignored when `ssl_disable_tls_verification => true` is set.
169
176
  This hash allows additional fields to be added to the [OpenTelemetry Resource field](https://opentelemetry.io/docs/reference/specification/logs/data-model/#field-resource)
170
177
  Hash values must be strings.
171
178
 
179
+ `attributes`
180
+
181
+ - Value type is [hash](https://www.elastic.co/guide/en/logstash/latest/configuration-file-structure.html#hash)
182
+ - Default is unset
183
+
184
+ When `attributes` is not configured, the plugin sends all event fields as OpenTelemetry log attributes except `@timestamp`.
185
+ For production pipelines, prefer an explicit allowlist or filter sensitive fields before this output.
186
+ The OpenTelemetry Collector should also include redaction, transform, or drop processors for secrets and regulated data because it receives the final OTLP attributes.
187
+
172
188
  `body`
173
189
 
174
190
  - Value type is [Field Reference](https://www.elastic.co/guide/en/logstash/8.12/configuration-file-structure.html#field-reference)
@@ -204,10 +220,32 @@ The field to reference as the [Otel Trace Flags field](https://opentelemetry.io/
204
220
 
205
221
  `make gem`
206
222
 
223
+ For unit tests, build the Logstash core jar first:
224
+
225
+ ```bash
226
+ make logstashcorejar
227
+ JAVA_HOME=/opt/homebrew/Cellar/openjdk@17/17.0.18/libexec/openjdk.jdk/Contents/Home ./gradlew test -PLOGSTASH_CORE_PATH=/Users/willianmarchan/Projects/BCP/O11Y/logstash-output-otlp/assets/logstash-9.0.0/logstash-core
228
+ ```
229
+
230
+ `make gem` also builds the Logstash core jar before packaging the local plugin gem.
231
+
207
232
  ## Running locally
208
233
 
209
234
  `docker-compose up`
210
235
 
236
+ The local Dockerfile installs a gem built from this repository with `logstash-plugin install --no-verify --local`.
237
+ That pattern is intended for local smoke tests of the local gem only.
238
+
239
+ For a production-like image that installs the published gem from RubyGems, use:
240
+
241
+ ```dockerfile
242
+ FROM docker.elastic.co/logstash/logstash:9.0.0
243
+ RUN logstash-plugin install logstash-output-otlp
244
+ ```
245
+
246
+ The certificates under `config/tls` are local test certificates used by the Docker Compose example.
247
+ Do not reuse those private keys or certificates in shared, staging, or production environments.
248
+
211
249
  ## Notes
212
250
 
213
251
  **Warning** This plugin depends on OpenTelemetry logging libraries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.5
@@ -2,4 +2,4 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  require 'jar_dependencies'
5
- require_jar('org.otlp', 'logstash-output-otlp', '0.4.3')
5
+ require_jar('org.otlp', 'logstash-output-otlp', '0.4.5')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-otlp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: java
6
6
  authors:
7
7
  - Willian Marchan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-04 00:00:00.000000000 Z
11
+ date: 2026-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ files:
74
74
  - lib/logstash-output-otlp_jars.rb
75
75
  - lib/logstash/outputs/otlp.rb
76
76
  - logstash-output-otlp.gemspec
77
- - vendor/jar-dependencies/org/otlp/logstash-output-otlp/0.4.3/logstash-output-otlp-0.4.3.jar
77
+ - vendor/jar-dependencies/org/otlp/logstash-output-otlp/0.4.5/logstash-output-otlp-0.4.5.jar
78
78
  homepage: https://github.com/wjma90/logstash-output-otlp
79
79
  licenses:
80
80
  - Apache-2.0