Commit graph

10886 commits

Author SHA1 Message Date
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
kaisecheng
9ad33e21b9
add deprecation warning for allow_superuser: true (#16555) 2024-11-06 17:47:17 +00:00
github-actions[bot]
54caef7a29
Update .ruby-version to jruby-9.4.9.0 (#16642) (#16645)
(cherry picked from commit efbee31461)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-11-06 12:46:06 +00:00
Andrea Selva
4201628f9e
Update depreacation warning to provide the version the ArcSight module is removed. (#16648) 2024-11-06 12:30:45 +01:00
github-actions[bot]
00898bd560
For custom java plugins, set the platform = 'java'. (#16628) (#16649)
(cherry picked from commit 046ea1f5a8)

Co-authored-by: Nicole Albee <2642763+a03nikki@users.noreply.github.com>
2024-11-06 08:54:06 +00:00
github-actions[bot]
0657729cb7
bump jruby to 9.4.9.0 (#16634) (#16639)
(cherry picked from commit 6703aec476)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-11-06 08:23:32 +00:00
github-actions[bot]
aea58a36a9
Anchor the -java match pattern at the end of the string. (#16626) (#16637)
This fixes the offline install problem of the logstash-input-java_filter_example off-line install.

(cherry picked from commit 113585d4a5)

Co-authored-by: Nicole Albee <2642763+a03nikki@users.noreply.github.com>
2024-11-05 14:25:29 +00:00
github-actions[bot]
a7384c0d6c
fix Windows java not found log (#16633) (#16636)
(cherry picked from commit 849f431033)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2024-11-05 10:45:59 +00:00
github-actions[bot]
37b1e9006e
Update JDK to latest in versions.yml (#16627) (#16631)
Update JDK to version 21.0.5+11

(cherry picked from commit 852149be2e)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-11-04 17:25:31 +01:00
github-actions[bot]
2bcb5adcbb
add boostrap to docker build to fix missing jars (#16622) (#16623)
The DRA build failed because the required jars were missing, as they had been removed during the Docker build process.

(cherry picked from commit 00da72378b)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2024-11-01 15:48:36 +00:00
github-actions[bot]
6c8e086d5e
reduce effort during build of docker images (#16619) (#16620)
there's no need to build jdk-less and windows tarballs for docker images
so this change simplifies the build process.

It should reduce the time spent needed to build docker images.

(cherry picked from commit 9eced9a106)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-10-31 17:04:50 +00:00
github-actions[bot]
1cbd092b6f
make docker build and gradle tasks more friendly towards ci output (#16618) (#16621)
(cherry picked from commit 472e27a014)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-10-31 17:04:42 +00:00
github-actions[bot]
b242715f76
[CI] Change agent for JDK availability check and add schedule also for 8.x (#16614) (#16617)
Switch execution agent of JDK availability check pipeline from vm-agent to container-agent.
Moves the schedule definition from the `Logstash Pipeline Scheduler` pipeline into the pipeline definition, adding a schedule also for `8.x` branch.

(cherry picked from commit c602b851bf)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-10-30 12:52:03 +01:00
github-actions[bot]
1335ec80f3
Fix bad reference to a variable (#16615) (#16616)
(cherry picked from commit 5d523aa5c8)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-10-30 12:51:14 +01:00
github-actions[bot]
51851a99d3
Use jvm catalog for reproducible builds and expose new pipeline to check JDK availability (#16602) (#16609)
Updates the existing `createElasticCatalogDownloadUrl` method to use the precise version retrieved `versions.yml` to download the JDK instead of using the latest of major version. This makes the build reproducible again.
Defines a new Gradle `checkNewJdkVersion` task to check if there is a new JDK version available from JVM catalog matching the same major of the current branch.
Creates a new Buildkite pipeline to execute a `bash` script to run the Gradle task; plus it also update the `catalog-info.yaml` with the new pipeline and a trigger to execute every week.

(cherry picked from commit ed5874bc27)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-10-30 12:15:08 +01:00
github-actions[bot]
d6c96b407f
make max inflight warning global to all pipelines (#16597) (#16601)
The current max inflight error message focuses on a single pipeline and on a maximum amount of 10k events regardless of the heap size.

The new warning will take into account all loaded pipelines and also consider the heap size, giving a warning if the total number of events consumes 10% or more of the total heap.

For the purpose of the warning events are assumed to be 2KB as it a normal size for a small log entry.

(cherry picked from commit ca19f0029e)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-10-25 15:16:18 +01:00
Edmo Vamerlatti Costa
79e439e27b
bump version to 8.17.0 (#16592) 2024-10-24 09:45:56 +01:00
github-actions[bot]
8fb1292934
Release notes for 8.15.3 (#16527) (#16571)
* Update release notes for 8.15.3

* Refined release notes

* Apply suggestions from code review

* Update docs/static/releasenotes.asciidoc

---------

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: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit 2788841f5c)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-18 11:11:33 +02:00
github-actions[bot]
7e1877ca12
add http.* deprecation log (#16538) (#16582)
- refactor deprecated alias to support obsoleted version
- add deprecation log for http.* config

(cherry picked from commit 3f0ad12d06)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2024-10-17 16:23:15 +01:00
github-actions[bot]
27bd2a039b
Backport PR #16482 to 8.x: Bugfix for BufferedTokenizer to completely consume lines in case of lines bigger then sizeLimit (#16569)
Fixes the behaviour of the tokenizer to be able to work properly when buffer full conditions are met.

Updates BufferedTokenizerExt so that can accumulate token fragments coming from different data segments. When a "buffer full" condition is matched, it record this state in a local field so that on next data segment it can consume all the token fragments till the next token delimiter.
Updated the accumulation variable from RubyArray containing strings to a StringBuilder which contains the head token, plus the remaining token fragments are stored in the input array.
Furthermore it translates the `buftok_spec` tests into JUnit tests.

(cherry picked from commit 85493ce864)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-10-16 17:32:52 +02:00
github-actions[bot]
216c68f280
Backport PR #16564 to 8.x: Adds a JMH benchmark to test BufferedTokenizerExt class(#16570)
Adds a JMH benchmark to measure the peformances of BufferedTokenizerExt.
Update also Gradle build script to remove CMS GC flags and fix deprecations for Gradle 9.0.

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

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-10-16 17:31:46 +02:00