-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packetbeat/docs: add documentation for ingest pipelines #37798
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[[load-ingest-pipelines]] | ||
== Load ingest pipelines | ||
|
||
{beatname_uc} modules are implemented using {es} ingest node | ||
pipelines. The events receive their transformations within | ||
{es}. The ingest node pipelines must be loaded | ||
into {es}. This can happen one of several ways. | ||
|
||
[id="{beatname_lc}-load-pipeline-auto"] | ||
[float] | ||
=== On connection to {es} | ||
|
||
{beatname_uc} will send ingest pipelines automatically to {es} if the | ||
{es} output is enabled. | ||
|
||
Make sure the user specified in +{beatname_lc}.yml+ is | ||
<<privileges-to-setup-beats,authorized to set up {beatname_uc}>>. | ||
|
||
If {beatname_uc} is sending events to {ls} or another output you need | ||
to load the ingest pipelines with the `setup` command or manually. | ||
|
||
[id="{beatname_lc}-load-pipeline-manual"] | ||
[float] | ||
=== Manually install pipelines | ||
|
||
Pipelines can be loaded them into {es} with the `_ingest/pipeline` REST API | ||
call. The user making the REST API call will need to have the `ingest_admin` | ||
role assigned to them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
[id="{beatname_lc}-modules"] | ||
[role="xpack"] | ||
= Modules | ||
|
||
[partintro] | ||
-- | ||
This section contains detailed information about the available network packet | ||
log processing modules contained in {beatname_uc}. | ||
|
||
{beatname_uc} modules are implemented using Elasticsearch Ingest Node pipelines. | ||
The events receive their transformations within Elasticsearch. All events are | ||
sent through {beatname_uc}'s "routing" pipeline that routes events to specific | ||
module pipelines based on their network protocol. | ||
|
||
{beatname_uc}'s default config file contains the option to send all events to | ||
the routing pipeline. If you remove this option then the module processing | ||
will not be applied. | ||
|
||
[source,yaml,subs="attributes"] | ||
---- | ||
output.elasticsearch.pipeline: packetbeat-%{[agent.version]}-routing | ||
---- | ||
|
||
The general goal of each module is to transform events by renaming fields to | ||
comply with the {ecs-ref}/index.html[Elastic Common Schema] (ECS). The modules | ||
may also apply additional categorization, tagging, and parsing as necessary. | ||
|
||
NOTE: The provided modules only support events in English. For more information | ||
efd6 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
about how to configure the language in `packetbeat`, refer to <<configuration-packetbeat-options>>. | ||
|
||
[id="{beatname_lc}-modules-setup"] | ||
[float] | ||
=== Setup of Ingest Node pipelines | ||
|
||
{beatname_uc}'s Ingest Node pipelines must be installed to Elasticsearch if you | ||
want to apply the module processing to events. The simplest way to get started | ||
is to use the Elasticsearch output and {beatname_uc} will automatically install | ||
the pipelines when it first connects to Elasticsearch. | ||
|
||
Installation Methods | ||
|
||
1. <<{beatname_lc}-load-pipeline-auto>> | ||
2. <<{beatname_lc}-load-pipeline-manual>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this relevant to Packetbeat? For Windows events the keys can vary by OS langauage. I don't think that applies here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove.