-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,009 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
x-pack/elastic-agent/pkg/agent/program/testdata/enabled_output_true-filebeat.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,38 @@ | ||
filebeat: | ||
inputs: | ||
- type: log | ||
paths: | ||
- /var/log/hello1.log | ||
- /var/log/hello2.log | ||
index: logs-generic-default | ||
processors: | ||
- add_fields: | ||
target: "data_stream" | ||
fields: | ||
type: logs | ||
dataset: generic | ||
namespace: default | ||
- add_fields: | ||
target: "event" | ||
fields: | ||
dataset: generic | ||
- add_fields: | ||
target: "elastic_agent" | ||
fields: | ||
id: agent-id | ||
version: 8.0.0 | ||
snapshot: false | ||
- add_fields: | ||
target: "agent" | ||
fields: | ||
id: agent-id | ||
output: | ||
elasticsearch: | ||
enabled: true | ||
hosts: | ||
- 127.0.0.1:9200 | ||
- 127.0.0.1:9300 | ||
headers: | ||
h1: test-header | ||
username: elastic | ||
password: changeme |
38 changes: 38 additions & 0 deletions
38
x-pack/elastic-agent/pkg/agent/program/testdata/enabled_true-filebeat.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,38 @@ | ||
filebeat: | ||
inputs: | ||
- type: log | ||
enabled: true | ||
paths: | ||
- /var/log/hello1.log | ||
- /var/log/hello2.log | ||
index: logs-generic-default | ||
processors: | ||
- add_fields: | ||
target: "data_stream" | ||
fields: | ||
type: logs | ||
dataset: generic | ||
namespace: default | ||
- add_fields: | ||
target: "event" | ||
fields: | ||
dataset: generic | ||
- add_fields: | ||
target: "elastic_agent" | ||
fields: | ||
id: agent-id | ||
version: 8.0.0 | ||
snapshot: false | ||
- add_fields: | ||
target: "agent" | ||
fields: | ||
id: agent-id | ||
output: | ||
elasticsearch: | ||
hosts: | ||
- 127.0.0.1:9200 | ||
- 127.0.0.1:9300 | ||
headers: | ||
h1: test-header | ||
username: elastic | ||
password: changeme |
113 changes: 113 additions & 0 deletions
113
x-pack/elastic-agent/pkg/agent/program/testdata/endpoint_basic-endpoint-security.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,113 @@ | ||
revision: 5 | ||
fleet: | ||
access_api_key: VuaCfGcBCdbkQm-e5aOx:ui2lp2axTNmsyakw9tvNnw | ||
protocol: https | ||
hosts: [ localhost:5601 ] | ||
timeout: 30s | ||
agent: | ||
id: fleet-agent-id | ||
logging.level: error | ||
host: | ||
id: host-agent-id | ||
|
||
output: | ||
elasticsearch: | ||
hosts: | ||
- "127.0.0.1:9200" | ||
- "127.0.0.1:9300" | ||
username: elastic | ||
password: changeme | ||
api_key: TiNAGG4BaaMdaH1tRfuU:KnR6yE41RrSowb0kQ0HWoA | ||
ca_sha256: 7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y= | ||
|
||
inputs: | ||
- id: endpoint-id | ||
type: endpoint | ||
name: endpoint-1 | ||
enabled: true | ||
package: | ||
name: endpoint | ||
version: 0.3.0 | ||
data_stream: | ||
namespace: default | ||
artifact_manifest: | ||
schema_version: v22 | ||
manifest_version: v21 | ||
artifacts: | ||
- endpoint-allowlist-windows: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-windows | ||
- endpoint-allowlist-macos: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-macos | ||
- endpoint-allowlist-linux: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-linux | ||
policy: | ||
linux: | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
process: logs-endpoint.events.process-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
process: true | ||
file: true | ||
network: true | ||
windows: | ||
malware: | ||
mode: prevent | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
registry: logs-endpoint.events.registry-default | ||
process: logs-endpoint.events.process-default | ||
driver: logs-endpoint.events.driver-default | ||
library: logs-endpoint.events.library-default | ||
alerts: logs-endpoint.alerts-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
registry: true | ||
process: true | ||
security: true | ||
file: true | ||
dns: false | ||
dll_and_driver_load: false | ||
network: true | ||
mac: | ||
malware: | ||
mode: prevent | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
process: logs-endpoint.events.process-default | ||
alerts: logs-endpoint.alerts-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
process: true | ||
file: true | ||
network: true |
33 changes: 33 additions & 0 deletions
33
x-pack/elastic-agent/pkg/agent/program/testdata/fleet_server-fleet-server.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,33 @@ | ||
fleet: | ||
agent: | ||
id: fleet-agent-id | ||
logging.level: error | ||
host: | ||
id: host-agent-id | ||
|
||
output: | ||
elasticsearch: | ||
hosts: [ 127.0.0.1:9200, 127.0.0.1:9300 ] | ||
headers: | ||
h1: test-header | ||
username: fleet | ||
password: fleetpassword | ||
|
||
inputs: | ||
- id: fleet-server-id | ||
type: fleet-server | ||
name: fleet_server-1 | ||
revision: 6 | ||
server: | ||
host: 0.0.0.0 | ||
port: 8220 | ||
ssl: | ||
verification_mode: none | ||
limits: | ||
max_connections: 40 | ||
runtime: | ||
gc_percent: 50 | ||
timeouts: | ||
read: 5m | ||
policy: | ||
id: copy-policy-id |
114 changes: 114 additions & 0 deletions
114
x-pack/elastic-agent/pkg/agent/program/testdata/namespace-endpoint-security.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,114 @@ | ||
fleet: | ||
enabled: true | ||
access_api_key: VuaCfGcBCdbkQm-e5aOx:ui2lp2axTNmsyakw9tvNnw | ||
protocol: https | ||
hosts: [ localhost:5601 ] | ||
timeout: 30s | ||
agent: | ||
id: fleet-agent-id | ||
logging.level: error | ||
host: | ||
id: host-agent-id | ||
|
||
output: | ||
elasticsearch: | ||
hosts: | ||
- "127.0.0.1:9200" | ||
- "127.0.0.1:9300" | ||
namespace: test_namespace | ||
username: elastic | ||
password: changeme | ||
api_key: TiNAGG4BaaMdaH1tRfuU:KnR6yE41RrSowb0kQ0HWoA | ||
ca_sha256: 7HIpactkIAq2Y49orFOOQKurWxmmSFZhBCoQYcRhJ3Y= | ||
|
||
inputs: | ||
- id: endpoint-id | ||
type: endpoint | ||
name: endpoint-1 | ||
enabled: true | ||
package: | ||
name: endpoint | ||
version: 0.3.0 | ||
data_stream: | ||
namespace: default | ||
artifact_manifest: | ||
schema_version: v22 | ||
manifest_version: v21 | ||
artifacts: | ||
- endpoint-allowlist-windows: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-windows | ||
- endpoint-allowlist-macos: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-macos | ||
- endpoint-allowlist-linux: | ||
sha256: 1234 | ||
size: 2 | ||
url: /relative/path/to/endpoint-allowlist-linux | ||
policy: | ||
linux: | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
process: logs-endpoint.events.process-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
process: true | ||
file: true | ||
network: true | ||
windows: | ||
malware: | ||
mode: prevent | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
registry: logs-endpoint.events.registry-default | ||
process: logs-endpoint.events.process-default | ||
driver: logs-endpoint.events.driver-default | ||
library: logs-endpoint.events.library-default | ||
alerts: logs-endpoint.alerts-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
registry: true | ||
process: true | ||
security: true | ||
file: true | ||
dns: false | ||
dll_and_driver_load: false | ||
network: true | ||
mac: | ||
malware: | ||
mode: prevent | ||
advanced: | ||
free-form: free-form-value | ||
indices: | ||
network: logs-endpoint.events.network-default | ||
file: logs-endpoint.events.file-default | ||
process: logs-endpoint.events.process-default | ||
alerts: logs-endpoint.alerts-default | ||
metadata: metrics-endpoint.metadata-default | ||
policy: metrics-endpoint.policy-default | ||
telemetry: metrics-endpoint.telemetry-default | ||
logging: | ||
file: info | ||
stdout: debug | ||
events: | ||
process: true | ||
file: true | ||
network: true |
Oops, something went wrong.