Commit graph

10733 commits

Author SHA1 Message Date
github-actions[bot]
8fa13707fa
Update patch plugin versions in gemfile lock (#16211)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2024-06-10 09:52:24 -07:00
github-actions[bot]
224421f3e9
Pin rexml gem version to 3.2.6 (#16209) (#16210)
This commit pinned the `rexml` gem version to `3.2.6`

(cherry picked from commit 23221caddb)

Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
2024-06-10 18:01:22 +02:00
github-actions[bot]
550e935835
Revert PR #16050 (#16203)
The PR was created to skip resolving environment variable references in comments present in the “config.string” pipelines defined in the pipelines.yml file.
However it introduced a bug that no longer resolves env var references in values of settings like pipeline.batch.size or queue.max_bytes.
For now we’ll revert this PR and create a fix that handles both problems.

(cherry picked from commit efa83787a5)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-06-06 20:29:56 +01:00
Rob Bavey
7afb42c13a
Bump version to 8.14.1 (#16196) 2024-06-05 09:15:37 -04:00
github-actions[bot]
78fb379282
Release notes for 8.14.0 (#16155)
Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2024-06-04 19:11:05 -04:00
João Duarte
9878e2737a
Upgrade nokogiri to 1.16.5 (#16188) 2024-05-31 11:28:03 +01:00
github-actions[bot]
9cdb8b839f
PQ: avoid blocking writer when precisely full (#16176) (#16178)
* pq: avoid blocking writer when queue is precisely full

A PQ is considered full (and therefore needs to block before releasing the
writer) when its persisted size on disk _exceeds_ its `queue.max_bytes`
capacity.

This removes an edge-case preemptive block when the persisted size after
writing an event _meets_ its `queue.max_bytes` precisely AND its current
head page has insufficient room to also accept a hypothetical future event.

Fixes: elastic/logstash#16172

* docs: PQ `queue.max_bytes` cannot be less than `queue.page_capacity`

(cherry picked from commit ea930861ef)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2024-05-22 10:55:53 -07:00
Mashhur
7277a369a1
Handle non-unicode payload in Logstash. (#16072) (#16168)
* A logic to handle non-unicode payload in Logstash.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>

* Upgrade jrjackson to 0.4.20

* Code review: simplify the logic with a standard String#encode interface with replace option.

Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>

---------

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>
(cherry picked from commit 979d30d701)
2024-05-21 06:50:35 -07:00
github-actions[bot]
304b8b25e6
[DOC] Remove reference to puppet LS module (#12356) (#16165)
As the module is not maintained since 2018 and it was community supported, I would like to remove it from the documentation.

(cherry picked from commit 53d9480176)

Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>
2024-05-16 14:24:08 -04:00
github-actions[bot]
1401565c48
bump lock file for 8.14 (#16154)
* Update minor 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>
2024-05-09 14:18:55 +01:00
github-actions[bot]
581ac90ec6
Release notes for 8.13.4 (#16144) (#16151)
Refined release notes for 8.13.4

---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: andsel <selva.andre@gmail.com>
(cherry picked from commit 49a65324a8)
2024-05-07 18:06:55 -04:00
github-actions[bot]
e673e0d36f
bump lock file for 8.14 (#16132)
* 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: João Duarte <jsvd@users.noreply.github.com>
2024-05-02 22:23:22 +01:00
github-actions[bot]
b1773f8c02
force ruby-maven-libs constraint to >= 3.9.6.1 (#16130) (#16131)
(cherry picked from commit 973c2ba3aa)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-05-02 21:50:23 +01:00
github-actions[bot]
1f12208528
bump lock file for 8.14 (#16129)
---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-05-02 15:34:38 +01:00
github-actions[bot]
ed535a822a Release notes for 8.13.3 (#16108)
* Update release notes for 8.13.3

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2024-05-02 15:09:45 +01:00
github-actions[bot]
c2195bc1ee
upgrade jruby to 9.4.7.0 (#16125) (#16126)
(cherry picked from commit 4350855e7b)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-05-02 10:00:03 +01:00
github-actions[bot]
ceddff3ab3
Provide opt-in flag to avoid fields name clash when log format is json (#15969) (#16094)
Adds log.format.json.fix_duplicate_message_fields feature flag to rename the clashing fields when json logging format (log.format) is selected.
In case two message fields clashes on structured log message, then the second is renamed attaching _1 suffix to the field name.
By default the feature is disabled and requires user to explicitly enable the behaviour.

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

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-04-17 18:01:16 +02:00
github-actions[bot]
18583787b3
bump lock file for 8.14 (#16087)
* Update minor 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>
2024-04-17 09:16:02 +01:00
Kaise Cheng
ba5af17681 update Gemfile lock 2024-04-16 17:24:39 +01:00
Rob Bavey
b9b9ad9395
Use dpkg --print-architecture in Dockerfile to ascertain architecture (#16076)
* Use `dpkg --print-architecture` in Dockerfile to ascertain architecture
2024-04-12 15:47:34 -04:00
Andrea Selva
cc1eca904e
Split LS_JAVA_OPTS content when contains multiple options (#16079)
Bugfix to parse correctly Java options when the environment variable LS_JAVA_OPTS contains multiple definitions separated by space character.

Adapt the parsing of `LS_JAVA_OPTS` environment variable to split by space various definitions it can contains.
2024-04-12 15:18:29 +02:00
Mashhur
9483ee04c6
Fix the exception behavior when config.string contains ${VAR} in the comments. (#16050)
* Wipe out comment lines if config comment contains.

* Remove substitution var process when loading the YAML, instead align on the generic approach which LSCL happens during the pipeline compile.

* Update logstash-core/src/main/java/org/logstash/config/ir/PipelineConfig.java

Put the logging config back as it is being used with composed configs.
2024-04-11 07:32:28 -07:00
kaisecheng
84886ac4be
remove 8.12 from CI (#16077) 2024-04-11 12:56:29 +01:00
Andrea Selva
afa646fbcb
Introduce a new setting to give preference to Java heap or direct space buffer allocation type (#16054)
Introduce a new setting named `pipeline.buffer.type` which could be valued direct or heap to enable the allocation on Java heap.
The processing of the setting is done in `LogStash::Runner#execute` and sets the Java properties considered by Netty to disable the direct allocation: `io.netty.noPreferDirect`.
However, if that system property is already configured explicitly by the user (because set in `jvm.options`or `LS_JAVA_OPTS`) the setting doesn't take place and warning log is reported, respecting the user's will.

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-04-10 15:23:47 +02:00
github-actions[bot]
2ec54b42e2
Release notes for 8.13.2 (#16068) (#16071)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 2bef137dc4)
2024-04-08 12:23:34 -04:00
Mashhur
4a379be6d5
Fix the git branch check for snyk bk jobs (#16062)
* Replace 'git show-ref' with 'git rev-parse' to fix the issue where show-ref is not working as expected.
* Use git checkout instead 'git rev-parse'.
* Apply prune dependencies recommended for big projects (like we have multi gradle projects) by Snyk.
* Apply prune repeated dependency option directly to snyk monitor.
* Avoid the exit, continue scanning to the end.
* Remove the debugging.
2024-04-08 11:34:26 +01:00
Rob Bavey
e5b2b3d92b
Update Dockerfile to select appropriate architecture on build box (#16053)
This commit adds logic to copy the appropriate env2yaml file to the Docker image
* Clean up env2yaml folder

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-04-04 18:15:54 -04:00
Andrea Selva
6eb99437e4
Update releases inventory after 8.13.1 (#16048) 2024-04-04 10:39:17 +02:00
Andrea Selva
6a04854e4c
JDK 21 move (#15719)
Adaptations to run Logstash on JDK 21:

- Java 8 support is obsolete and will be removed.
- Thread's `getId` (not final) replaced by final `threadId` https://bugs.openjdk.org/browse/JDK-8017617
- Verify the warnings "this-escape" when a constructor use other method or pass around `this` reference to other methods https://bugs.openjdk.org/browse/JDK-8015831
- URL constructor is deprecated, use `<uri_instance>.toURL()` (since JDK 20)
-  Manages new (since JDK 20) `G1 Concurrent GC` MX Bean, [ref](https://github.com/elastic/logstash/pull/15719#issuecomment-1946367785)
2024-04-03 17:08:12 +02:00
github-actions[bot]
327fbe134a
Release notes for 8.13.1 (#16046) (#16049)
Forward port release notes for 8.13.1 on main
2024-04-02 08:59:18 +02:00
Mashhur
dd1f6dd160
Fix integration tests caused by #16026. (#16038) 2024-03-28 09:08:00 -07:00
João Duarte
f6940f5a34
Update critical_vulnerability_scan.yml (#16039)
Change trigger from pull_request_target to pull_request, as the former uses the base branch instead of the PR source code.
This allows simplification of the checkout action (also took the opportunity to bump from v2 to v4).
2024-03-28 15:03:07 +00:00
kaisecheng
a7779664af
Modernize ironbank Dockerfile (#16022)
- remove golang assets (go1.17.8.linux-amd64.tar.gz)
- remove yaml lib assets (v2.3.0.tar.gz)
- use go container to build env2yaml
- remove unnecessary layers
- remove HEALTHCHECK
- switch yum to dnf

Fixes: elastic/ingest-dev#3008
2024-03-28 11:15:01 +00:00
Mashhur
e429795039
Save name came through ENV vars to let Logstash decide using value from either keystore or ENV. (#16026)
* Save  name came through ENV vars to let Logstash decide using either keystore or ENV value.

* Apply suggestions from code review to simplify array declaration.

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>

---------

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2024-03-27 09:22:27 -07:00
João Duarte
e8597cbb77
Introduce vulnerability scanner that fails PRs on critical vulnerabilities (#16028)
This github action leverages https://github.com/anchore/grype to scan a tarball artifact
2024-03-27 16:04:50 +00:00
João Duarte
96e4838e43
Fix exclusion of old ruby-maven-libs 3.3.9 jars (#16032) 2024-03-27 14:40:03 +00:00
Karen Metts
36b7cb8ab3
Doc: Remove beta tag from integrations filter doc (#16021) 2024-03-26 12:22:08 -04:00
Andrea Selva
c4bd54de58
Update releases inventory after 7.17.19 (#16024) 2024-03-26 15:53:34 +01:00
kaisecheng
716c33f4b5
update ci release for 8.13.0 (#16030) 2024-03-26 10:53:44 +00:00
github-actions[bot]
bae6210c21
Release notes for 8.13.0 (#15978) (#16027)
Co-authored-by: Kaise Cheng <kaise.cheng@elastic.co>
Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
Co-authored-by: Mashhur <mashhur.sattorov@elastic.co>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit 270c8ca110)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-26 09:22:00 +00:00
João Duarte
59bd376360
upgrade ruby-maven-libs to 3.8.9 (#15894)
Given that JRuby comes with ruby-maven-libs 3.3.9 this commit upgrades the gem to 3.8.9 and ensures files from 3.3.9 are not included in the distribution.
2024-03-18 14:30:13 +01:00
carrychair
d1e624b81c
remove repetitions of "the" word (#15987)
Signed-off-by: carrychair <linghuchong404@gmail.com>
2024-03-17 10:53:59 +00:00
Karen Metts
92b20bc184
Doc: Remove extra + to force page regen (#16000) 2024-03-12 11:27:07 -04:00
Rob Bavey
32052a263f
Remove curl installation step, as curl-minimal is already provided in ubi9 (#15998) 2024-03-12 09:50:52 -04:00
João Duarte
43614ede50
ensure order of jvm options from file and env vars is respected (#15997)
Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-03-12 09:18:35 +00:00
Ry Biesemeyer
483059e378
geoip: avoid crash cleaning non-existing managed dbs (#15986)
* geoip: avoid crash cleaning non-existing managed dbs

* Update x-pack/spec/geoip_database_management/manager_spec.rb

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

---------

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2024-03-11 11:56:51 -07:00
Dimitrios Liappis
c0c213d17e
Split java/ruby unit test steps on Windows (#15888)
As a follow up to #15861 this commit splits the current unit tests step
for the Windows JDK matrix pipeline to two that run
Java and Ruby unit tests separately.

Closes https://github.com/elastic/logstash/issues/15566
2024-03-11 09:27:11 +02:00
Rob Bavey
b640e7e851
Add arm64 support for env2yaml (#15980)
* Add arm64 support for env2yaml

This commit builds env2yaml in arm64 and amd64 flavors, and uses
$TARGETARCH in the Dockerfile to ensure that the correct version is used
when building for alternative architectures

Fixes: #15913

* Add env2yaml executables to build context

* Split `COPY_FILES` for readability

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

---------

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2024-03-08 10:47:01 -05:00
Mashhur
dec53ba325
Imap plugin is no anymore default plugin. (#15425) 2024-03-08 07:25:46 -08:00
Mashhur
19637143e6
Fix the Bootstrap check test failure on Windows. (#15975) 2024-03-06 10:10:35 -08:00