Commit graph

10906 commits

Author SHA1 Message Date
github-actions[bot]
40866b9e96
bump lock file for 8.17 (#17024)
* Update patch plugin versions in gemfile lock

* pull in minor from ES filter

* remove java-17 specific (covered by `java`)

* pull in minor from http input to get fixed netty thread names

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>
2025-02-05 10:07:15 -08:00
github-actions[bot]
d1f470ae5c
Backport PR #16968 to 8.17: Fix BufferedTokenizer to properly resume after a buffer full condition respecting the encoding of the input string (#16968) (#17022)
Backport PR #16968 to 8.17 branch, original message:

----

Permit to use effectively the tokenizer also in context where a line is bigger than a limit.
Fixes an issues related to token size limit error, when the offending token was bigger than the input fragment in happened that the tokenzer wasn't unable to recover the token stream from the first delimiter after the offending token but messed things, loosing part of tokens.

## How solve the problem
This is a second take to fix the processing of tokens from the tokenizer after a buffer full error. The first try #16482 was rollbacked to the encoding error #16694.
The first try failed on returning the tokens in the same encoding of the input.
This PR does a couple of things:
- accumulates the tokens, so that after a full condition can resume with the next tokens after the offending one.
- respect the encoding of the input string. Use `concat` method instead of `addAll`, which avoid to convert RubyString to String and back to RubyString. When return the head `StringBuilder` it enforce the encoding with the input charset.

(cherry picked from commit 1c8cf546c2)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-02-05 12:14:55 +01:00
github-actions[bot]
23383e71c3
upgrade jdk to 21.0.6+7 (#16932) (#16987) (#16989)
(cherry picked from commit 51ab5d85d2)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit f561207b4b)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-30 11:20:09 +00:00
github-actions[bot]
77e355ed9f
plugin manager: add --level=[major|minor|patch] (default: minor) (#16899) (#16974)
* plugin manager: add `--level=[major|minor|patch]` (default: `minor`)

* docs: plugin manager update `--level` behavior

* Update docs/static/plugin-manager.asciidoc

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>

* docs: plugin update major as subheading

* docs: intention-first in major plugin updates

* Update docs/static/plugin-manager.asciidoc

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>

---------

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit 6943df5570)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2025-01-28 17:18:03 -08:00
kaisecheng
dfdbaf2f66
add openssl command to wolfi image (#16971) 2025-01-28 17:31:48 +00:00
github-actions[bot]
56e5ebcf37
remove irrelevant warning for internal pipeline (#16938) (#16963)
This commit removed irrelevant warning for internal pipeline, such as monitoring pipeline.
Monitoring pipeline is expected to be one worker. The warning is not useful

Fixes: #13298
(cherry picked from commit 3f41828ebb)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-01-27 17:29:53 +00:00
github-actions[bot]
3897b718ff
[Backport 8.x] Reimplement LogStash::String setting in Java (#16576) (#16959) (#16960)
Clean backport of #16959 from 8.x to 8.17

----

Reimplements `LogStash::Setting::String` Ruby setting class into the `org.logstash.settings.SettingString` and exposes it through `java_import` as `LogStash::Setting::SettingString`.
Updates the rspec tests in two ways:
- logging mock is now converted to real Log4J appender that spy log line that are later verified
- verifies `java.lang.IllegalArgumentException` instead of `ArgumentError` is thrown because the kind of exception thrown by Java code, during verification.

* Fixed the rename of NullableString to SettingNullableString

* Fixed runner test to use real spy logger from Java Settings instead of mock test double

(cherry picked from commit a0378c05cb)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-01-27 17:25:12 +01:00
github-actions[bot]
f3fd1c5841
fix user and password detection from environment's uri (#16955) (#16958)
(cherry picked from commit c8a6566877)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2025-01-27 11:50:57 +00:00
github-actions[bot]
b9b5b9553b
Increase Xmx used by JRuby during Rake execution to 4Gb (#16911) (#16943)
(cherry picked from commit 58e6dac94b)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-01-24 14:54:29 +01:00
Dimitrios Liappis
2002e936fe
Backport 16907 to 8.17: Use --qualifier in release manager (#16907) #16941
Backport of #16907 cherry-picked from 9385cfa

This commit uses the new --qualifier parameter in the release manager
for publishing dra artifacts. Additionally, simplifies the expected
variables to rely on a simple `VERSION_QUALIFIER`.

Snapshot builds are skipped when VERSION_QUALIFIER is set.
Finally, for helping to test DRA PRs, we also allow passing the `DRA_BRANCH`  option/env var
to override BUILDKITE_BRANCH.

Closes https://github.com/elastic/ingest-dev/issues/4856
2025-01-24 14:52:07 +02:00
github-actions[bot]
fa6894ae93
Doc: Remove extra symbol to fix formatting error (#16926) (#16935)
(cherry picked from commit f66e00ac10)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-01-23 17:35:14 -05:00
github-actions[bot]
0966786feb
[doc] fix the necessary privileges of central pipeline management (#16902) (#16930)
CPM requires two roles logstash_admin and logstash_system

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit dc740b46ca)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-01-23 11:36:13 +00:00
github-actions[bot]
d2aa696142
fix jars installer for new maven and pin psych to 5.2.2 (#16919) (#16924)
handle maven output that can carry "garbage" information after the jar's name. this patch deletes that extra information, also pins psych to 5.2.2 until jruby ships with snakeyaml-engine 2.9 and jar-dependencies 0.5.2

Related to: https://github.com/jruby/jruby/issues/8579

(cherry picked from commit 52b7fb0ae6)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2025-01-22 17:00:35 +00:00
kaisecheng
648c5abd00
Update Gemfile.jruby-3.1.lock.release (#16922) 2025-01-22 15:13:55 +00:00
kaisecheng
93e792c3d6
Release notes for 8.16.3 (#16879) (#16918)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
# Conflicts:
#	docs/static/releasenotes.asciidoc

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-21 12:00:21 +00:00
kaisecheng
862bbacb6a
bump core 8.17.2 (#16916) 2025-01-21 10:10:52 +00:00
github-actions[bot]
927a043597
Release notes for 8.17.1 (#16880)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-01-21 01:44:00 +00:00
github-actions[bot]
5bd02d98b4
Validate the size limit in BufferedTokenizer. (#16882) (#16891)
(cherry picked from commit a215101032)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2025-01-09 16:52:41 -08:00
github-actions[bot]
43f6fc0f4a
Initialize flow metrics if pipeline metric.collect params is enabled. (#16881) (#16888)
(cherry picked from commit 47d04d06b2)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2025-01-09 13:32:00 -08:00
João Duarte
92d58d1928
Forward port 8.15.5 and 8.16.2 release notes to 8.17 (#16810)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-01-08 11:44:57 +00:00
Mashhur
268b61da9a
elastic_integration plugin version updated. (#16875) 2025-01-07 18:22:51 -08:00
github-actions[bot]
e9c3abb049
bump lock file for 8.17 (#16870)
* Update patch plugin versions in gemfile lock

* Update Gemfile.jruby-3.1.lock.release

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-01-07 17:26:54 +00:00
github-actions[bot]
af3004c8cd
Respect environment variables in jvm.options (#16834) (#16867)
JvmOptionsParser adds support for ${VAR:default} syntax when parsing jvm.options
- allow dynamic resolution of environment variables in the jvm.options file
- enables fallback to default value when the environment variable is not set

(cherry picked from commit ef36df6b81)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-01-07 15:04:17 +00:00
github-actions[bot]
1494f184ef
Add pipeline metrics to Node Stats API (#16839) (#16865)
This commit introduces three new metrics per pipeline in the Node Stats API:
- workers
- batch_size
- batch_delay

```
{
  ...
  pipelines: {
    main: {
      events: {...},
      flow: {...},
      plugins: {...},
      reloads: {...},
      queue: {...},
      pipeline: {
        workers: 12,
        batch_size: 125,
        batch_delay: 5,
      },
    }
  }
  ...
}
```

(cherry picked from commit de6a6c5b0f)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-01-07 14:53:08 +00:00
github-actions[bot]
7609102d20
Doc: Add appropriate alternate for deprecated module in 8.x (#16856) (#16860)
(cherry picked from commit 4bf1fb514e)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-01-06 16:13:16 -05:00
João Duarte
9e729ccb78
Update logstash-input-azure_event_hubs 1.5.1 (#16848) 2025-01-03 16:11:03 +00:00
github-actions[bot]
515175f9f3
Apply Jackson stream read constraints defaults at runtime (#16832) (#16846)
When Logstash 8.12.0 added increased Jackson stream read constraints to
jvm.options, assumptions about the existence of that file's contents
were invalidated. This led to issues like #16683.

This change ensures Logstash applies defaults from config at runtime:
- MAX_STRING_LENGTH: 200_000_000
- MAX_NUMBER_LENGTH: 10_000
- MAX_NESTING_DEPTH: 1_000

These match the jvm.options defaults and are applied even when config
is missing. Config values still override these defaults when present.

(cherry picked from commit cc608eb88b)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-01-02 15:24:14 -08:00
github-actions[bot]
657d95aa06
Update patch plugin versions in gemfile lock (#16842)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2025-01-02 13:37:46 +00:00
Karen Metts
c77396c2db
Doc: Add json_lines known issue to release notes (#16831) 2024-12-26 14:39:19 -05:00
github-actions[bot]
6115544b75
Avoid lock when ecs_compatibility is explicitly specified (#16786) (#16829)
Because a `break` escapes a `begin`...`end` block, we must not use a `break` in order to ensure that the explicitly set value gets memoized to avoid lock contention.

> ~~~ ruby
> def fake_sync(&block)
>   puts "FAKE_SYNC:enter"
>   val = yield
>   puts "FAKE_SYNC:return(#{val})"
>   return val
> ensure
>   puts "FAKE_SYNC:ensure"
> end
>
> fake_sync do
>   @ivar = begin
>     puts("BE:begin")
>   	break :break
>
>   	val = :ret
>   	puts("BE:return(#{val})")
>   	val
>   ensure
>     puts("BE:ensure")
>   end
> end
> ~~~

Note: no `FAKE_SYNC:return`:

> ~~~
> ╭─{ rye@perhaps:~/src/elastic/logstash (main ✔) }
> ╰─● ruby break-esc.rb
> FAKE_SYNC:enter
> BE:begin
> BE:ensure
> FAKE_SYNC:ensure
> [success]
> ~~~

(cherry picked from commit 01c8e8bb55)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2024-12-23 10:43:30 -08:00
github-actions[bot]
4f4c21072b
update ironbank image to ubi9/9.5 (#16825) (#16826)
(cherry picked from commit dbb06c20cf)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2024-12-19 22:57:15 +00:00
github-actions[bot]
d592e3a46f
Doc: Update security docs to replace obsolete cacert setting (#16798) (#16803) 2024-12-19 13:17:01 -05:00
github-actions[bot]
df557cf225
give more memory to tests. 1gb instead of 512mb (#16764) (#16800)
(cherry picked from commit e6e0f9f6eb)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-12-16 11:59:30 +00:00
github-actions[bot]
b361ec35e7
Update minor plugin versions in gemfile lock (#16781)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2024-12-16 10:30:32 +00:00
João Duarte
b6a74f9418
bump to 8.17.1 (#16784) 2024-12-12 16:02:10 +01:00
github-actions[bot]
f663392a91
Release notes for 8.17.0 (#16768)
* Update release notes for 8.17.0

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2024-12-11 17:38:49 -05:00
github-actions[bot]
2db4edcee4
Pin date dependency to 3.3.3 (#16755) (#16782)
Resolves: #16095, #16754
(cherry picked from commit ab19769521)

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2024-12-11 13:37:05 +00:00
github-actions[bot]
33ac2790b2
ensure inputSize state value is reset during buftok.flush (#16760) (#16770)
(cherry picked from commit e36cacedc8)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-12-09 09:46:49 -08:00
github-actions[bot]
6f8fd5a4eb
ensure jackson overrides are available to static initializers (#16719) (#16757)
Moves the application of jackson defaults overrides into pure java, and
applies them statically _before_ the `org.logstash.ObjectMappers` has a chance
to start initializing object mappers that rely on the defaults.

We replace the runner's invocation (which was too late to be fully applied) with
a _verification_ that the configured defaults have been applied.

(cherry picked from commit 202d07cbbf)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2024-12-04 16:02:18 -08:00
github-actions[bot]
5ab462e8b3
Pin jar-dependencies to 0.4.1 (#16747) (#16750)
Pin jar-dependencies to `0.4.1`, until https://github.com/jruby/jruby/issues/7262
is resolved.

(cherry picked from commit e3265d93e8)

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2024-12-04 10:09:22 -05:00
github-actions[bot]
c68a631a4c
Docs: Troubleshooting update for JDK bug handling cgroups v1 (#16721) (#16731)
---------
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>

(cherry picked from commit d913e2ae3d)

Co-authored-by: mmahacek <mark.mahacek@elastic.co>
2024-11-27 13:49:51 +00:00
github-actions[bot]
ab22999a7a
Release notes for 8.16.1 (#16691) (#16707)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit 8b97c052e6)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-20 18:23:13 -05:00
Cas Donoghue
accc201d1f
Revert "Backport PR #16482 to 8.x: Bugfix for BufferedTokenizer to completely consume lines in case of lines bigger then sizeLimit (#16569)" (#16705)
This reverts commit 27bd2a039b.
2024-11-20 14:46:00 -08:00
github-actions[bot]
adfa02b536
Update minor plugin versions in gemfile lock for 8.17.0 (#16696)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2024-11-20 16:36:32 +00:00
github-actions[bot]
10512266af
Update license checker with new logger dependency (#16695) (#16700)
A new transative dependency on the `logger` gem has been added through sinatra 4.1.0. Update the
license checker to ensure this is accounted for.

(cherry picked from commit e0ed994ab1)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2024-11-20 15:29:43 +00:00
João Duarte
7914ac04c0 add lockfile from 8.16.1 and bump version to 8.17.0 2024-11-20 11:20:38 +00:00
Ry Biesemeyer
8af6343a26
PipelineBusV2 deadlock proofing (#16671)
* pipeline bus: add deadlock test for unlisten/unregisterSender

* pipeline bus: eliminate deadlock

Moves the sync-to-notify out of the `AddressStateMapping#mutate`'s effective
synchronous block to eliminate a race condition where unlistening to an address
and unregistering a sender could deadlock.

It is safe to notify an AddressState's attached input without exclusive access
to the AddressState, because notifying an input that has since been disconnected
is net zero harm.
2024-11-18 08:43:11 -08:00
github-actions[bot]
18e1545e4b
Updates release notes for 8.14.x to call for an update. (#16675) (#16676)
Updates release notes for `8.14.x` to call for an update to a subsequent minor for fix performance regression in JSON decoding.

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 52836f8caf)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-11-18 08:49:35 +01:00
github-actions[bot]
01dcd621d3
Doc: Realign release notes and add known issue (#16663) (#16668)
(cherry picked from commit 15cdf5c63d)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2024-11-12 15:19:30 -05:00
github-actions[bot]
a402be0b8f
Release notes for 8.16.0 (#16605) (#16662)
* Update release notes for 8.16.0

* Refine release notes

* Apply suggestions from code review

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Andrea Selva <selva.andre@gmail.com>

* Refine release notes

* Apply suggestions from code review

Co-authored-by: Andrea Selva <selva.andre@gmail.com>

* Apply suggestions from code review

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>

* Added dependency update section for new jruby version

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: edmocosta <11836452+edmocosta@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Andrea Selva <selva.andre@gmail.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
(cherry picked from commit 8b897915cd)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-11-11 16:56:46 -05:00