forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add forwarded tag example to packetbeat.yml (elastic#19209) (elastic#…
…20309) Add an example to packetbeat.yml of using the `forwarded` tag to disable `host` metadata fields when processing network data from network tap or mirror port. Relates elastic#13920 (cherry picked from commit 28cb613)
- Loading branch information
1 parent
c8fade2
commit c76d2c1
Showing
4 changed files
with
41 additions
and
7 deletions.
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,15 @@ | ||
{{header "General"}} | ||
|
||
# The name of the shipper that publishes the network data. It can be used to group | ||
# all the transactions sent by a single shipper in the web interface. | ||
#name: | ||
|
||
# A list of tags to include in every event. In the default configuration file | ||
# the forwarded tag causes Packetbeat to not add any host fields. If you are | ||
# monitoring a network tap or mirror port then add the forwarded tag. | ||
#tags: [forwarded] | ||
|
||
# Optional fields that you can specify to add additional information to the | ||
# output. | ||
#fields: | ||
# env: staging |
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,12 @@ | ||
{{header "Processors"}} | ||
|
||
processors: | ||
- # Add forwarded to tags when processing data from a network tap or mirror. | ||
if.contains.tags: forwarded | ||
then: | ||
- drop_fields: | ||
fields: [host] | ||
else: | ||
- add_host_metadata: ~ | ||
- add_cloud_metadata: ~ | ||
- add_docker_metadata: ~ |
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