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.
[Packetbeat] Split out elastic-agent config changes (elastic#22145)
* Split out elastic-agent config changes * update test fixtures * Remove bundled packetbeat * unnest inputs * Change input to type packet * Revert "Remove bundled packetbeat" This reverts commit a89fe1a. * Revert "Revert "Remove bundled packetbeat"" This reverts commit 48d5f0e.
- Loading branch information
Andrew Stucki
authored
Nov 16, 2020
1 parent
36f28bf
commit af4007e
Showing
5 changed files
with
68 additions
and
3 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
x-pack/elastic-agent/pkg/agent/program/testdata/single_config-packetbeat.yml
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,30 @@ | ||
inputs: | ||
- type: packet | ||
processors: | ||
- add_fields: | ||
target: 'elastic_agent' | ||
fields: | ||
id: agent-id | ||
version: 8.0.0 | ||
snapshot: false | ||
streams: | ||
- type: flow | ||
timeout: 10s | ||
period: 10s | ||
keep_null: false | ||
data_stream: | ||
dataset: packet.flow | ||
type: logs | ||
- type: icmp | ||
data_stream: | ||
dataset: packet.icmp | ||
type: logs | ||
output: | ||
elasticsearch: | ||
hosts: | ||
- 127.0.0.1:9200 | ||
- 127.0.0.1:9300 | ||
username: elastic | ||
password: changeme | ||
api_key: TiNAGG4BaaMdaH1tRfuU:KnR6yE41RrSowb0kQ0HWoA | ||
ca_sha256: 7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y= |
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,21 @@ | ||
name: Packetbeat | ||
cmd: packetbeat | ||
args: ['-E', 'setup.ilm.enabled=false', '-E', 'setup.template.enabled=false', '-E', 'management.mode=x-pack-fleet', '-E', 'management.enabled=true', '-E', 'logging.level=debug'] | ||
artifact: beats/packetbeat | ||
rules: | ||
- filter_values: | ||
selector: inputs | ||
key: type | ||
values: | ||
- packet | ||
|
||
- inject_agent_info: {} | ||
|
||
- filter: | ||
selectors: | ||
- inputs | ||
- output | ||
|
||
when: length(${inputs}) > 0 and hasKey(${output}, 'elasticsearch', 'redis', | ||
'kafka', 'logstash') | ||
|