Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakerouse committed Oct 20, 2020
1 parent dc9b470 commit de21e61
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ filebeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
output:
elasticsearch:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ filebeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
output:
elasticsearch:
hosts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ filebeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
- type: log
paths:
- /var/log/hello3.log
Expand All @@ -43,11 +43,11 @@ filebeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
output:
elasticsearch:
hosts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ metricbeat:
fields:
dataset: docker.status
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
- module: docker
metricsets: [info]
index: metrics-generic-default
Expand All @@ -37,11 +37,11 @@ metricbeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
- module: apache
metricsets: [info]
index: metrics-generic-testing
Expand All @@ -61,11 +61,11 @@ metricbeat:
fields:
dataset: generic
- add_fields:
target: "elastic"
target: "elastic_agent"
fields:
agent.id: agent-id
agent.version: 8.0.0
agent.snapshot: false
id: agent-id
version: 8.0.0
snapshot: false
output:
elasticsearch:
hosts: [127.0.0.1:9200, 127.0.0.1:9300]
Expand Down
16 changes: 8 additions & 8 deletions x-pack/elastic-agent/pkg/agent/transpiler/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ inputs:
type: file
processors:
- add_fields:
target: elastic
target: elastic_agent
fields:
agent.id: agent-id
agent.snapshot: false
agent.version: 8.0.0
id: agent-id
snapshot: false
version: 8.0.0
- name: With processors
type: file
processors:
Expand All @@ -197,11 +197,11 @@ inputs:
fields:
data: more
- add_fields:
target: elastic
target: elastic_agent
fields:
agent.id: agent-id
agent.snapshot: false
agent.version: 8.0.0
id: agent-id
snapshot: false
version: 8.0.0
`,
rule: &RuleList{
Rules: []Rule{
Expand Down

0 comments on commit de21e61

Please sign in to comment.