Commit graph

11024 commits

Author SHA1 Message Date
Andrea Selva
27e55c3aa6
Fix comment for pinned 'uri' gem version 2025-04-07 11:51:46 +02:00
Andrea Selva
cbc2abfe46 Update uri gem required by Logstash (#17495)
(cherry picked from commit cb4c234aee)
2025-04-07 08:34:59 +00:00
mergify[bot]
12e66590cc
pin cgi to 0.3.7 (#17487) (#17488)
(cherry picked from commit eeb2162ae4)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-04-03 19:07:26 +01:00
mergify[bot]
d4a2a1eac5
Remove tech preview from agent driven LS monitoring pages. (#17482) (#17483)
* Remove tech preview from agent driven LS monitoring pages.

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
(cherry picked from commit ae3b3ed17c)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2025-04-02 11:10:31 -07:00
mergify[bot]
0d162a533b
Breaking changes for 9.0 (#17380) (#17480)
(cherry picked from commit 3c6cbbf35b)

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2025-04-02 13:33:15 -04:00
mergify[bot]
6c1fcdb304
remove reliance on redirects (#17440) (#17443)
(cherry picked from commit e5bebcea17)

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-04-01 13:28:08 -04:00
mergify[bot]
440d2277f7
Doc: Move 9.0 pre-release notes to release notes (#17439) (#17474)
(cherry picked from commit 7913f91340)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-04-01 10:46:12 -04:00
mergify[bot]
885706813d
Fix persistent-queues.md PQ sizing multiplication factors #17451 (#17452) (#17468)
closes #17431 for main/9.0 branches

(cherry picked from commit 5f5b4bb3c3)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2025-04-01 13:50:56 +01:00
mergify[bot]
13c5779183
[Backport 9.0] Fix syntax in BK CI script (#17462) (#17467)
(cherry picked from commit 422cd4e06b)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-04-01 13:22:43 +02:00
mergify[bot]
7bab8425d8
ci(backport): remove former approach (#17347) (#17456)
(cherry picked from commit 26af21df85)

Co-authored-by: Victor Martinez <victormartinezrubio@gmail.com>
2025-03-31 22:18:21 +02:00
mergify[bot]
e05d306356
[9.0] Pin rubocop-ast development gem due to new dep on prism (backport #17407) (#17424)
* Pin rubocop-ast development gem due to new dep on prism (#17407)

The rubocop-ast gem just introduced a new dependency on prism.
 - https://rubygems.org/gems/rubocop-ast/versions/1.43.0

In our install default gem rake task we are seeing issues trying to build native
extensions. I see that in upstream jruby they are seeing a similar problem (at
least it is the same failure mode https://github.com/jruby/jruby/pull/8415

This commit pins rubocop-ast to 1.42.0 which is the last version that did not
have an explicit prism dependency.

(cherry picked from commit 6de59f2c02)

* Bump rubocop-ast

We are pinning rubocop-ast to the last version that did not require prism.
It is a development gem and should not change any behavior of LS.

---------

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-03-27 14:44:48 -07:00
mergify[bot]
61547355cb
Doc: Remove plugin docs from logstash core (#17405) (#17432)
Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-03-27 11:34:02 -04:00
mergify[bot]
11c91a2a32
[Backport 9.0]Limit memory consumption in test on overflow (#17373) (#17415)
Updates only test code to be able to run a test that consumes big memory if:
- the physical memory is bigger than the requested Java heap
- JDK version is greater than or equal to 21.

The reason to limit the JDK version is that on 16GB machine the G1GC is more efficient than the one on previous JDKs and so let complete the test with 10GB heap, while in JDK 17 it consistently fails with OOM error.

(cherry picked from commit 075fdb4152)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-03-27 15:38:53 +01:00
mergify[bot]
21d9d68454
Fix Elasticsearch output SSL settings (#17391) (#17397)
Replace removed Elasticsearch output SSL settings with the latest values

(cherry picked from commit f705a9de48)

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2025-03-27 10:06:43 -04:00
mergify[bot]
caa059998d
Doc: Upgrade content improvements (#17403) (#17430)
* Change upgrade prereq from 8.17 to 8.18

(cherry picked from commit add7b3f4d3)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-03-26 13:58:14 -04:00
mergify[bot]
494903ef07
Added test to verify the int overflow happen (#17353) (#17358)
Use long instead of int type to keep the length of the first token.

The size limit validation requires to sum two integers, one with the length of the accumulated chars till now plus the next fragment head part. If any of the two sizes is close to the max integer it generates an overflow and could successfully fail the test 9c0e50faac/logstash-core/src/main/java/org/logstash/common/BufferedTokenizerExt.java (L123).

To fall in this case it's required that sizeLimit is bigger then 2^32 bytes (2GB) and data fragments without any line delimiter is pushed to the tokenizer with a total size close to 2^32 bytes.

(cherry picked from commit afde43f918)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2025-03-24 16:15:36 +01:00
mergify[bot]
48857958fa
Updates navigation titles and descriptions for release notes (#17381) (#17384) 2025-03-21 13:25:11 -04:00
mergify[bot]
d072ab0c14
[docs] Miscellaneous docs clean up (#17372) (#17383)
* remove unused substitutions
* move images
* validate build

(cherry picked from commit 284272b137)

Co-authored-by: Colleen McGinnis <colleen.mcginnis@elastic.co>
2025-03-21 11:39:09 -04:00
mergify[bot]
3092c03e54
Doc: Fix upgrade TOC structure (#17361) (#17382)
(cherry picked from commit 960d997e9f)

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-03-21 11:04:16 -04:00
mergify[bot]
03e68b2314
tests: make integration split quantity configurable (#17219) (#17371)
* tests: make integration split quantity configurable

Refactors shared splitter bash function to take a list of files on stdin
and split into a configurable number of partitions, emitting only those from
the currently-selected partition to stdout.

Also refactors the only caller in the integration_tests launcher script to
accept an optional partition_count parameter (defaulting to `2` for backward-
compatibility), to provide the list of specs to the function's stdin, and to
output relevant information about the quantity of partition splits and which
was selected.

* ci: run integration tests in 3 parts

(cherry picked from commit 3e0f488df2)

Co-authored-by: Rye Biesemeyer <yaauie@users.noreply.github.com>
2025-03-20 05:41:51 -07:00
mergify[bot]
2325941493
Disable support of OpenJDK 17 (#17338) (#17366)
(cherry picked from commit 7683983168)

Co-authored-by: Yehor Shvedov <146825775+ev1yehor@users.noreply.github.com>
2025-03-20 04:01:22 +02:00
mergify[bot]
7e53175d93
add ci shared qualified-version script (#17311) (#17350)
* ci: add shareable script for generating qualified version

* ci: use shared script to generate qualified version

(cherry picked from commit 10b5a84f84)

Co-authored-by: Rye Biesemeyer <yaauie@users.noreply.github.com>
2025-03-18 16:27:00 -07:00
github-actions[bot]
f15ae9fbb0
Update patch plugin versions in gemfile lock (#17343)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2025-03-17 18:52:12 -07:00
mergify[bot]
248f630012
Doc: Refine new MD docs (WIP) (#17325) (#17342)
(cherry picked from commit 193af6a272)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2025-03-17 17:41:57 -04:00
mergify[bot]
3af8a6fe00
[9.0] Upgrade elasticsearch-ruby client. (backport #17161) (#17309)
* Upgrade elasticsearch-ruby client. (#17161)

* Fix Faraday removed basic auth option and apply the ES client module name change.

(cherry picked from commit e748488e4a)

* Update elasticsearch-ruby client in gemfile lock.

---------

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
2025-03-17 08:35:43 -07:00
mergify[bot]
402bd5a11e
Internal collection doc update to reflect enabling legacy collection. (#17326) (#17327)
(cherry picked from commit 8d10baa957)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2025-03-14 15:25:35 -07:00
mergify[bot]
5c50762b66
Require shellwords in artifact rake task (#17319) (#17320)
The https://github.com/elastic/logstash/pull/17310 PR changed the rake task for
artifact creation to use shellwords from standard library. The acceptance tests
need to explitily load that library. This commit updates the rake file to handle
loading the required code.

(cherry picked from commit 964468f922)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-03-13 19:11:06 -07:00
mergify[bot]
6ab56e35c8
Surface failures from nested rake/shell tasks (#17310) (#17313)
Previously when rake would shell out the output would be lost. This
made debugging CI logs difficult. This commit updates the stack with
improved message surfacing on error.

(cherry picked from commit 0d931a502a)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-03-13 16:47:13 -07:00
mergify[bot]
d3ee043bb5
Shareable function for partitioning integration tests (#17223) (#17299)
For the fedramp high work https://github.com/elastic/logstash/pull/17038/files a
use case for multiple scripts consuming the partitioning functionality emerged.
As we look to more advanced partitioning we want to ensure that the
functionality will be consumable from multiple scripts.

See https://github.com/elastic/logstash/pull/17219#issuecomment-2698650296

(cherry picked from commit d916972877)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-03-12 11:16:40 -07:00
Karen Metts
91927d7450
Doc: Migrate docs from AsciiDoc to Markdown in 9.0 branch (#17289)
* Doc: Delete asciidoc files for 9.0 branch
* Add MD files for 9.0 branch
2025-03-10 18:02:14 -04:00
mergify[bot]
905ff93cec
Fix pqcheck and pqrepair on Windows (#17210) (#17263)
A recent change to pqheck, attempted to address an issue where the
pqcheck would not on Windows mahcines when located in a folder containing
a space, such as "C:\program files\elastic\logstash". While this fixed an
issue with spaces in folders, it introduced a new issue related to Java options,
and the pqcheck was still unable to run on Windows.

This PR attempts to address the issue, by removing the quotes around the Java options,
which caused the option parsing to fail, and instead removes the explicit setting of
the classpath - the use of `set CLASSPATH=` in the `:concat` function is sufficient
to set the classpath, and should also fix the spaces issue

Fixes: #17209
(cherry picked from commit ba5f21576c)

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2025-03-07 16:13:14 -05:00
Ry Biesemeyer
0f59eee208
Backport 17203 and 17267 9.0 (#17269)
* Pluginmanager clean after mutate (#17203)

* pluginmanager: always clean after mutate

* pluginmanager: don't skip updating plugins installed with --version

* pr feedback

(cherry picked from commit 8c96913807)

* Pluginmanager install preserve (#17267)

* tests: integration tests for pluginmanager install --preserve

* fix regression where pluginmanager's install --preserve flag didn't
2025-03-06 09:19:08 -08:00
mergify[bot]
aefc1bb024
[CI] Health report integration tests use the new artifacts-api (#17274) (#17284)
migrate to the new artifacts-api

(cherry picked from commit feb2b92ba2)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-03-06 16:49:29 +00:00
mergify[bot]
39bdd54fc1
[CI] benchmark uses the new artifacts-api (#17224) (#17278)
migrate benchmark to the new artifacts-api

(cherry picked from commit d61a83abbe)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-03-06 16:27:30 +00:00
mergify[bot]
1a87f07137
Additional cleanify changes to ls2ls integ tests (#17246) (#17257)
* Additional cleanify changes to ls2ls integ tests: replace heartbeat-input with reload option, set queue drain to get consistent result.

(cherry picked from commit 1e06eea86e)

Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
2025-03-05 13:03:08 -08:00
mergify[bot]
c9ae703117
tests: ls2ls delay checking until events have been processed (#17167) (#17251)
* tests: ls2ls delay checking until events have been processed

* Make sure upstream sends expected number of events before checking the expectation with downstream. Remove unnecessary or duplicated logics from the spec.

* Add exception handling in `wait_for_rest_api` to make wait for LS REST API retriable.

---------

Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
Co-authored-by: Mashhur <99575341+mashhurs@users.noreply.github.com>
(cherry picked from commit 73ffa243bf)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2025-03-05 12:18:00 -08:00
mergify[bot]
8e42cba58c
Improve warning for insufficient file resources for PQ max_bytes (#16656) (#17249)
This commit refactors the `PersistedQueueConfigValidator` class to provide a
more detailed, accurate and actionable warning when pipeline's PQ configs are at
risk of running out of disk space. See
https://github.com/elastic/logstash/issues/14839 for design considerations. The
highlights of the changes include accurately determining the free resources on a
filesystem disk and then providing a breakdown of the usage for each of the
paths configured for a queue.

(cherry picked from commit 062154494a)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-03-05 11:36:57 -08:00
mergify[bot]
2aff08c6e4
gradle task migrate to the new artifacts-api (#17232) (#17240)
This commit migrates gradle task to the new artifacts-api

- remove dependency on staging artifacts
- all builds use snapshot artifacts
- resolve version from current branch, major.x, previous minor,
   with priority given in that order.

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
(cherry picked from commit 0a745686f6)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-03-05 18:23:30 +00:00
github-actions[bot]
ed676fe4d3
Update rack to 3.1.11 (#17230) (#17233)
(cherry picked from commit 872ae95588)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-03-05 17:23:05 +00:00
github-actions[bot]
c6149e6584
Fix empty node stats pipelines (#17185) (#17204)
Fixed an issue where the `/_node/stats` API displayed empty pipeline metrics
when X-Pack monitoring was enabled

(cherry picked from commit 86785815bd)

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2025-02-28 22:51:58 +00:00
github-actions[bot]
6ceddc694a
add missing Makefile tasks to build oss and wolfi images from build context tarballs (#17189) (#17205)
(cherry picked from commit a4cf2bcc52)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2025-02-28 22:31:14 +00:00
github-actions[bot]
24e97492df
add env2yaml source files to build context tarball (#17151) (#17181)
* build full docker image from dockerfiles during docker acceptance tests

(cherry picked from commit fecfc7c602)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2025-02-28 16:23:03 +00:00
kaisecheng
7a39a0e7c1
[Backport 9.0] use UBI9 as base image (#17174)
- the base image change from ubi8 to ubi9
- remove installation of curl
2025-02-28 11:52:02 +00:00
github-actions[bot]
fc99649795
qa: don't bypass plugin manger tests on linux (#17171) (#17172)
* qa: don't bypass plugin manger tests on linux

* add gradle task to build gem fixtures for integration tests

(cherry picked from commit 0f81816311)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2025-02-27 13:59:32 -08:00
github-actions[bot]
574b8eda76
Add Windows 2025 to CI (#17133) (#17142)
This commit adds Windows 2025 to the Windows JDK matrix and exhaustive tests pipelines.

(cherry picked from commit 4d52b7258d)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
2025-02-24 16:47:57 +02:00
github-actions[bot]
bba7e470a5
Update container acceptance tests with stdout/stderr changes (#17138) (#17139)
In https://github.com/elastic/logstash/pull/17125 jvm setup was redirected to
stderr to avoid polluting stdout. This test was actually having to do some
additional processing to parse that information. Now that we have split the
destinations the tests can be simplified to look for the data they are trying to
validate on the appropriate stream.

(cherry picked from commit 227c0d8150)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-02-21 12:23:02 -08:00
github-actions[bot]
d622ff2272
entrypoint: avoid polluting stdout (#17125) (#17135)
routes output from setup-related functions to stderr, so that stdout can
include only the output of the actual program.

(cherry picked from commit 91258c3f98)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2025-02-21 12:22:31 -08:00
github-actions[bot]
5da491eb3b
Update minor plugin versions in gemfile lock (#17134)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2025-02-20 12:16:07 -08:00
Mashhur
ae2ecf3d8b
Upgrade filter-xml and its nokogori dependency. (#17130) 2025-02-20 09:35:11 -08:00
github-actions[bot]
db8fdad7d9
Fix acceptance test assertions for updated plugin remove (#17126) (#17129)
This commit updates the acceptance tests to expect messages in the updated
format for removing plugins. See https://github.com/elastic/logstash/pull/17030
for change.

(cherry picked from commit e8e24a0397)

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
2025-02-20 09:10:47 -08:00