-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ingest Manager] New structure of agent configuration #19128
Changes from 3 commits
4e79b49
a044e9c
3f2e35e
94741ed
bd8f87c
e8b58ba
c57a694
85ad9c5
299bf28
903bc2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,37 +19,45 @@ outputs: | |
hosts: ["monitoring:9200"] | ||
ca_sha256: "7lHLiyp4J8m9kw38SJ7SURJP4bXRZv/BNxyyXkCcE/M=" | ||
|
||
datasources: | ||
- use_output: default | ||
inputs: | ||
- type: docker/metrics | ||
streams: | ||
- metricset: status | ||
dataset: docker.status | ||
- metricset: info | ||
dataset: "" | ||
hosts: ["http://127.0.0.1:8080"] | ||
- type: logs | ||
streams: | ||
- paths: | ||
- /var/log/hello1.log | ||
- /var/log/hello2.log | ||
vars: | ||
var: value | ||
- namespace: testing | ||
inputs: | ||
- type: docker/metrics | ||
use_output: default | ||
inputs: | ||
- type: apache/metrics | ||
processors: | ||
- add_fields: | ||
fields: | ||
should_be: first | ||
streams: | ||
- enabled: true | ||
metricset: info | ||
hosts: ["http://apache.remote"] | ||
hosts: ["http://apache.local"] | ||
id: apache-metrics-id | ||
streams: | ||
- metricset: status | ||
dataset.name: docker.status | ||
- metricset: info | ||
dataset.name: "" | ||
hosts: ["http://127.0.0.1:8080"] | ||
- type: logs | ||
use_output: default | ||
streams: | ||
- paths: | ||
- /var/log/hello1.log | ||
- /var/log/hello2.log | ||
vars: | ||
var: value | ||
- type: logs | ||
dataset.type: testtype | ||
use_output: default | ||
streams: | ||
- paths: | ||
- /var/log/hello3.log | ||
- /var/log/hello4.log | ||
vars: | ||
var: value | ||
- type: apache/metrics | ||
dataset.namespace: testing | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably good to add one of these tests files to use:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you mean with invalid key? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No I mean add a test to ensure that
Both work |
||
use_output: default | ||
processors: | ||
- add_fields: | ||
fields: | ||
should_be: first | ||
streams: | ||
- enabled: true | ||
metricset: info | ||
hosts: ["http://apache.remote"] | ||
hosts: ["http://apache.local"] | ||
id: apache-metrics-id | ||
|
||
settings.monitoring: | ||
use_output: monitoring | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this become
dataset.name
instead of removing it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this became dataset.name thing is we injected it previously which i think is incorrect as we're providing processor to enrich event. if you think this information is helpful in a final beat config i will add it back but for now i filtered it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if the Beat does not understand it today, I think in the future the Beat should so having it there already would be helpful. Can happen in a later PR.