Skip to content

Commit c7ec8f6

Browse files
mergify[bot]efd6
andauthored
packetbeat/docs: add documentation for ingest pipelines (#37798) (#37815)
Also fix typo in winlogbeat load-ingest-pipelines doc. (cherry picked from commit 842c77c) Co-authored-by: Dan Kortschak <[email protected]>
1 parent f5cde3c commit c7ec8f6

File tree

5 files changed

+81
-1
lines changed

5 files changed

+81
-1
lines changed

packetbeat/docs/howto/howto.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ include::{libbeat-dir}/howto/load-dashboards.asciidoc[]
2323

2424
include::{libbeat-dir}/shared-geoip.asciidoc[]
2525

26+
include::load-ingest-pipelines.asciidoc[]
27+
2628
:standalone:
2729
include::{libbeat-dir}/shared-env-vars.asciidoc[]
2830
:standalone!:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[[load-ingest-pipelines]]
2+
== Load ingest pipelines
3+
4+
{beatname_uc} modules are implemented using {es} ingest node
5+
pipelines. The events receive their transformations within
6+
{es}. The ingest node pipelines must be loaded
7+
into {es}. This can happen one of several ways.
8+
9+
[id="{beatname_lc}-load-pipeline-auto"]
10+
[float]
11+
=== On connection to {es}
12+
13+
{beatname_uc} will send ingest pipelines automatically to {es} if the
14+
{es} output is enabled.
15+
16+
Make sure the user specified in +{beatname_lc}.yml+ is
17+
<<privileges-to-setup-beats,authorized to set up {beatname_uc}>>.
18+
19+
If {beatname_uc} is sending events to {ls} or another output you need
20+
to load the ingest pipelines with the `setup` command or manually.
21+
22+
[id="{beatname_lc}-load-pipeline-manual"]
23+
[float]
24+
=== Manually install pipelines
25+
26+
Pipelines can be loaded them into {es} with the `_ingest/pipeline` REST API
27+
call. The user making the REST API call will need to have the `ingest_admin`
28+
role assigned to them.

packetbeat/docs/modules.asciidoc

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[id="{beatname_lc}-modules"]
2+
[role="xpack"]
3+
= Modules
4+
5+
[partintro]
6+
--
7+
This section contains detailed information about the available network packet
8+
log processing modules contained in {beatname_uc}.
9+
10+
{beatname_uc} modules are implemented using Elasticsearch Ingest Node pipelines.
11+
The events receive their transformations within Elasticsearch. All events are
12+
sent through {beatname_uc}'s "routing" pipeline that routes events to specific
13+
module pipelines based on their network protocol.
14+
15+
{beatname_uc}'s default config file contains the option to send all events to
16+
the routing pipeline. If you remove this option then the module processing
17+
will not be applied.
18+
19+
[source,yaml,subs="attributes"]
20+
----
21+
output.elasticsearch.pipeline: packetbeat-%{[agent.version]}-routing
22+
----
23+
24+
The general goal of each module is to transform events by renaming fields to
25+
comply with the {ecs-ref}/index.html[Elastic Common Schema] (ECS). The modules
26+
may also apply additional categorization, tagging, and parsing as necessary.
27+
about how to configure the language in `packetbeat`, refer to <<configuration-packetbeat-options>>.
28+
29+
[id="{beatname_lc}-modules-setup"]
30+
[float]
31+
=== Setup of Ingest Node pipelines
32+
33+
{beatname_uc}'s Ingest Node pipelines must be installed to Elasticsearch if you
34+
want to apply the module processing to events. The simplest way to get started
35+
is to use the Elasticsearch output and {beatname_uc} will automatically install
36+
the pipelines when it first connects to Elasticsearch.
37+
38+
Installation Methods
39+
40+
1. <<{beatname_lc}-load-pipeline-auto>>
41+
2. <<{beatname_lc}-load-pipeline-manual>>

packetbeat/docs/packetbeat-options.asciidoc

+9
Original file line numberDiff line numberDiff line change
@@ -1650,3 +1650,12 @@ Example configuration:
16501650
-------------------------------------------------------------------------------------
16511651
packetbeat.shutdown_timeout: 5s
16521652
-------------------------------------------------------------------------------------
1653+
1654+
[float]
1655+
==== `overwrite_pipelines`
1656+
1657+
By default Ingest pipelines are not updated if a pipeline with the same ID
1658+
already exists. If this option is enabled {beatname_uc} overwrites pipelines
1659+
every time a new Elasticsearch connection is established.
1660+
1661+
The default value is `false`.

winlogbeat/docs/howto/load-ingest-pipelines.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ to load the ingest pipelines with the `setup` command or manually.
2424
=== setup command
2525

2626
On a machine that has {beatname_uc} installed and has {es} configured
27-
as the outup, run the `setup` command with the `--pipelines` option
27+
as the output, run the `setup` command with the `--pipelines` option
2828
specified. For example, the following command loads the ingest
2929
pipelines:
3030

0 commit comments

Comments
 (0)