Commit graph

1389 commits

Author SHA1 Message Date
Karen Metts
5354998113
Doc: Fileset must be enabled in module (#14405) 2022-08-02 19:23:05 -04:00
github-actions[bot]
cf84698570
Release notes for 8.3.3 (#14365) (#14389)
Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
(cherry picked from commit b25960f86f)
2022-07-28 13:34:21 -04:00
github-actions[bot]
506094eda2
Release notes for 8.3.2 (#14327) (#14387)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit f007d0ec04)
2022-07-28 12:24:29 -04:00
Andrea Selva
07fe589d8a
[doc] Describe DLQ's age retention policy (#14340)
Describe the DLQ age retention policy.
2022-07-27 13:01:22 -04:00
Andrea Selva
3c5ed2b62f
Document the cleaning of consumed events feature (#14341)
Documents the clean_consumed setting, which allows the user to remove processed/consumed DLQ events . 

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-07-27 12:43:41 -04:00
Andres Rodriguez
e5bc14b51d
[doc] Update example ES output configs to reflect DS being default (#14011)
Update example ES output configs to reflect DataStreams being default

Fixes #14008
2022-07-25 13:12:59 -04:00
Karen Metts
1ef4afcf61
Doc: Migrate terminology to emphasize pipeline for better seo (#14032)
* Apply suggestions from code review
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
2022-07-21 15:49:16 -04:00
Karen Metts
9454ad0703
LSR: Removes version plugin conditionals from plugin headers (#14352) 2022-07-21 13:18:19 -04:00
kaisecheng
2cc415c1f5
[DOC] update link from master to main (#14347) 2022-07-12 17:21:33 +01:00
Cleydyr Bezerra de Albuquerque
1ddd4ccd83
Fix broken link to image (#14343) 2022-07-12 14:53:07 +01:00
Guido Lena Cota
04d9326fcd
Docs: Fix 404s (#12276)
* Fix url that ended in a 404

Co-authored-by: kaisecheng <69120390+kaisecheng@users.noreply.github.com>
2022-07-12 11:51:38 +01:00
Andrea Selva
d2c2ab1a0d
[Docs] Fixes a typo in the docs (#14342) 2022-07-11 13:51:28 +02:00
Andrea Selva
df19e557a6
Forward port of release notes for 8.3.1 8.3.0. 8.2.3 to main (#14316)
* Forward port of 8.3.1 release notes
* Forward port of 8.3.0 release notes
* Forward port of 8.2.3 release notes

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-06-30 11:47:43 +02:00
Carlos Crespo
168732ff88
[doc] Removes 'beta' from pipeline viewer doc (#14082) 2022-06-30 11:09:27 +09:00
Ry Biesemeyer
7757908c34
Add ca_trusted_fingerprint to core features (monitoring/central-management) (#14155)
* add `ca_trusted_fingerprint` to core features (monitoring/central-management)

* Rely on released ES output

* fix: ensure commented-out examples in logstash.yml are functionally correct

* add admonition for how to get a trusted CA's fingerprint
2022-06-28 17:07:59 -07:00
Mashhur
d0c9aa8f48
File system mismatch when each pipeline uses separate file system. (#14212)
* Logstash checks different file system if each pipeline has a symlink to other filesystem.

* Apply suggestions from code review

* FileAlreadyExistsException case handling when queue path is symlinked.

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-06-16 09:22:00 -07:00
Andres Rodriguez
0605b75420
[docs] Correctly reference the base OS (ubuntu) for docker (#14214)
* Fix docs to correctly reference the base OS (ubuntu) for docker
2022-06-09 10:00:02 -04:00
github-actions[bot]
805bf063f5
Doc: Add pipeline improvements to release notes (#14193) (#14238)
(cherry picked from commit a78aebcd1e)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-06-08 17:23:48 -04:00
github-actions[bot]
579515a386
Doc: Add placeholder for 8.3 release notes (#14180) (#14237)
(cherry picked from commit d1f52eac25)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-06-08 16:25:45 -04:00
Andres Rodriguez
498c41bccc
Remove startup.options and system-install docs (#14197)
Removes documentation related to startup.options and system-install binary as they are no longer used in the latest versions of Logstash.
2022-06-01 12:08:08 -04:00
github-actions[bot]
79f02b28e1
Release notes for 8.2.2 (#14168) (#14178)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit eb5179fb74)
2022-05-26 18:46:56 -04:00
Karen Metts
87e528ac81
Doc: Add missing release notes (#14169) 2022-05-25 18:37:45 -04:00
Andrea Selva
81566e3522
Forward port of release notes for 8.2.0 and 8.2.1 (#14148)
Forward port of release notes for 8.2.0 and 8.2.1

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-05-25 18:21:46 +02:00
Ry Biesemeyer
d8454110ba
Field Reference: handle special characters (#14044)
* add failing tests for Event.new with field that look like field references

* fix: correctly handle FieldReference-special characters in field names.

Keys passed to most methods of `ConvertedMap`, based on `IdentityHashMap`
depend on identity and not equivalence, and therefore rely on the keys being
_interned_ strings. In order to avoid hitting the JVM's global String intern
pool (which can have performance problems), operations to normalize a string
to its interned counterpart have traditionally relied on the behaviour of
`FieldReference#from` returning a likely-cached `FieldReference`, that had
an interned `key` and an empty `path`.

This is problematic on two points.

First, when `ConvertedMap` was given data with keys that _were_ valid string
field references representing a nested field (such as `[host][geo][location]`),
the implementation of `ConvertedMap#put` effectively silently discarded the
path components because it assumed them to be empty, and only the key was
kept (`location`).

Second, when `ConvertedMap` was given a map whose keys contained what the
field reference parser considered special characters but _were NOT_
valid field references, the resulting `FieldReference.IllegalSyntaxException`
caused the operation to abort.

Instead of using the `FieldReference` cache, which sits on top of objects whose
`key` and `path`-components are known to have been interned, we introduce an
internment helper on our `ConvertedMap` that is also backed by the global string
intern pool, and ensure that our field references are primed through this pool.

In addition to fixing the `ConvertedMap#newFromMap` functionality, this has
three net effects:

 - Our ConvertedMap operations still use strings
   from the global intern pool
 - We have a new, smaller cache of individual field
   names, improving lookup performance
 - Our FieldReference cache no longer is flooded
   with fragments and therefore is more likely to
   remain performant

NOTE: this does NOT create isolated intern pools, as doing so would require
      a careful audit of the possible code-paths to `ConvertedMap#putInterned`.
      The new cache is limited to 10k strings, and when more are used only
      the FIRST 10k strings will be primed into the cache, leaving the
      remainder to always hit the global String intern pool.

NOTE: by fixing this bug, we alow events to be created whose fields _CANNOT_
      be referenced with the existing FieldReference implementation.

Resolves: https://github.com/elastic/logstash/issues/13606
Resolves: https://github.com/elastic/logstash/issues/11608

* field_reference: support escape sequences

Adds a `config.field_reference.escape_style` option and a companion
command-line flag `--field-reference-escape-style` allowing a user
to opt into one of two proposed escape-sequence implementations for field
reference parsing:

 - `PERCENT`: URI-style `%`+`HH` hexadecimal encoding of UTF-8 bytes
 - `AMPERSAND`: HTML-style `&#`+`DD`+`;` encoding of decimal Unicode code-points

The default is `NONE`, which does _not_ proccess escape sequences.
With this setting a user effectively cannot reference a field whose name
contains FieldReference-reserved characters.

| ESCAPE STYLE | `[`     | `]`     |
| ------------ | ------- | ------- |
| `NONE`       | _N/A_   | _N/A_   |
| `PERCENT`    | `%5B`   | `%5D`   |
| `AMPERSAND`  | `&#91;` | `&#93;` |

* fixup: no need to double-escape HTML-ish escape sequences in docs

* Apply suggestions from code review

Co-authored-by: Karol Bucek <kares@users.noreply.github.com>

* field-reference: load escape style in runner

* docs: sentences over semiciolons

* field-reference: faster shortcut for PERCENT escape mode

* field-reference: escape mode control downcase

* field_reference: more s/experimental/technical preview/

* field_reference: still more s/experimental/technical preview/

Co-authored-by: Karol Bucek <kares@users.noreply.github.com>
2022-05-24 07:48:47 -07:00
Mashhur
15dd1babf0
Simplifying HTTP basic password policy. (#14105)
* Simplifying HTTP basic password policy.
2022-05-23 21:11:10 -07:00
kaisecheng
205cf43213
[Doc] queue.max_bytes for all queues (#14128)
* bring back the details of PQ size checking
2022-05-20 10:32:21 +01:00
Nicole Albee
a6e418adf7
Doc: Update settings file doc to call out queue type (#14127)
* [DOCS] Added a few missing "(`queue.type: persisted`)" to a few of the logstash.yml.
* [DOCS] Moved a few of the queue_type persisted indicators.
2022-05-19 20:36:06 -04:00
Rob Bavey
4209481cc1
Add troubleshooting information around using certain versions of the … (#14061)
* Add troubleshooting information around using certain versions of the JDK on Windows

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-05-19 11:44:56 -04:00
RobertShan2000
379ebaf1bd
Update JVM document to fix issue 13561 (#14099)
Fix a contradictory statements about setting LS_JAVA_HOME with Logstash bundled with JDK.
Fix #13561
2022-05-19 10:13:37 +02:00
Mashhur
12162cbd80
Change on_superuser to run_as_superuser to clear a confusion. (#14089)
* Change on_superuser to run_as_superuser to clear a confusion.
2022-05-17 10:54:06 -07:00
kaisecheng
90e7c8864e
[Doc] PQ and DLQ do not support NFS (#14095)
* [Doc] PQ and DLQ do not support NFS
Fixed: #12097

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-05-16 15:28:19 +01:00
Mashhur
d8e08e9f20
Add complex password policy on basic auth (#14045)
* Apply complex password policy on HTTP basic auth.
2022-05-03 09:57:46 -07:00
Mashhur
25796737c3
Prevent Logstash from running as root. (#14046)
* Prevent Logstash from running as root.

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2022-05-02 08:53:35 -07:00
Karen Metts
2c5cc00e0b
Doc: Group central mgmt and configuring central mgmt topics (#14050) 2022-04-28 18:33:37 -04:00
Andrea Selva
c1fe7095c3
Implements DLQ storage policy (#13923)
Exposes dead_letter_queue.storage_policy configuration setting to explicitly enable the drop_older behavior in DLQs.

Moving from a drop_newer to a drop_older behavior has impact both on the writer side and to the reader side.
The implementation leverage the fact that a complete DLQ segment can be removed to free up space; on the writer side when the dead_letter_queue.max_bytes limit is reached it has to remove old segments.

On the reader side, the consuming has to be adapted to don't expect a continuous flow of segments, it could face an hole due to removal of tail segments.

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-04-28 09:16:03 +02:00
Andres Rodriguez
afc0edca18
Fix Bundled JDK docs to reflect JDK 11 (#14021)
Bundle JDK docs mislead users by specifying JDK 17 as the bundled version instead of 11.
2022-04-25 16:20:35 -04:00
Karen Metts
b16c836817
Doc: Restructure source files for pipeline configuration (#13990) 2022-04-21 17:35:03 -04:00
Karen Metts
2c5b039629
Doc: Refine content for generated CA in LS-ES security section (#13834)
Co-authored-by: Ry Biesemeyer <ry.biesemeyer@elastic.co>
2022-04-21 17:21:49 -04:00
Andres Rodriguez
5392ad7511
[doc] Add Logstash to Logstash HTTP example configuration.
Documents how to configure Logstash to Logstash with HTTP Input and Output Plugins.
2022-04-14 13:22:45 -04:00
Andres Rodriguez
cbb3ffd0dd
[doc] Remove references to sysv and upstart scripts when running logstash as a service. (#13953)
Remove any references about the use of sys-v or upstart scripts to run Logstash as a service.
2022-03-30 11:27:48 -04:00
João Duarte
682f07b703
[DOC] precedence between environment variables and yml in docker (#12198)
* [DOC] precedence between environment variables and yml in docker

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-03-29 17:19:55 +01:00
Karen Metts
c64ef889d5
Doc: Logstash-to-Logstash communication (#13926)
Adds http-output to http-input as a Logstash-Logstash configuration option
Expands info on considerations for both http-http and lumberjack-beats to help users make the best choice

Co-authored-by: Andres Rodriguez <andreserl@ubuntu.com>
2022-03-25 12:59:18 -04:00
kaisecheng
1a5030bd63
add backoff to checkpoint write (#13902)
This commit changes `queue.checkpoint.retry` to `true` by default allowing retry of checkpoint write failure.
Add exponential backoff retry to checkpoint write to mitigate AccessDeniedExcpetion in Windows.
Fixed: #12345
2022-03-24 09:19:45 +00:00
github-actions[bot]
de062add21
Add plugin uninstall release note (#13867) (#13912)
* Add plugin uninstall release note

Forward port PR #13867 to main branch

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

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2022-03-18 11:11:49 +00:00
github-actions[bot]
2a586b9822
Release notes for 8.1.0 (#13828) (#13911)
* Update release notes for 8.1.0
* Forward ported release notes for 8.0.1 to 8.1

Forward port PR #13828 to main branch

Co-authored-by: andsel <selva.andre@gmail.com>
(cherry picked from commit 31e06c0b1c)

Co-authored-by: Logstash Machine <43502315+logstashmachine@users.noreply.github.com>
2022-03-18 11:09:52 +00:00
kaisecheng
d71553e5d7
[Doc] update queue.max_bytes and queue.page_capacity (#13833)
Fixed: #8650, #10718

Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-03-09 15:51:18 +00:00
Karen Metts
8edce82170
Doc: Clarify monitoring settings (#13871)
Co-authored by: Dan Roscigno <dan@roscigno.com>

Moves content from #10940 into updated file/file structure
2022-03-08 16:48:16 -05:00
Karen Metts
68bacedf49
Doc: Improve formatting and readability for pipeline ordering (#13084)
Add pipelines.ordered entry to pipelines.yml

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2022-03-04 18:18:52 -05:00
Karen Metts
4e226927fa
Doc: Correct name for java_home env variable (#13827) 2022-03-04 12:06:33 -05:00
Karen Metts
c07568d81c
Doc: Set up redirects for deleted pages (#13772) 2022-02-17 13:43:18 -05:00