Cherry-pick #19713 to 7.x: Add 21 autogenerated filesets from rsa2elk devices #19868
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #19713 to 7.x branch. Original message:
What does this PR do?
This adds the following experimental filesets based on Apache 2 license device parsers:
Why is it important?
This is an effort to generate as many as possible experimental input sources from a set of 300 Apache2-licensed log parsers.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Notes to reviewers
The modules in this PR are autogenerated. All follow the same format:
The
README.md
,config.yml
,docs.asciidoc
andfields.yml
are the same, basically replacing the module/vendor/product name.Same for
input.yml
andmanifest.yml
. They define the same variables and inputs (tcp
,udp
andfile
).The
generated.log
files are autogenerated by the same program that converts the original XML files to Javascript. Generating logs using parser's patterns (some with overlap) and user-defined field names is hard. Some generated logs make more sense than others.A few selected modules contain real logs that we were able to obtain from other sources. Currently:
The
liblogparser.js
is the helper Javascript library for the parser. It's important to review this file. It's the same for all filesets.The
pipeline.js
is the autogenerated pipeline. Contains all the parsers and actions defined in the source XML. We're aware that some of these parsers are outdated and some partly broken regarding extra whitespace in patterns. There will be an ongoing effort to fix them.A couple of modules already existed:
In this case the
_meta/config.yml
and_meta/docs.asciidoc
have been merged automatically.Some parsers are currently broken (have
tags
:dissect_parsing_error
). I'm working on fixing those.The code for the generator is in https://github.com/adriansr/nwdevice2filebeat