-
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] Guard against empty stream.datasource and namespace #18769
[Ingest Manager] Guard against empty stream.datasource and namespace #18769
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
@@ -80,6 +87,14 @@ datasources: | |||
- paths: /var/log/mysql/access.log | |||
dataset: dsds | |||
index: mytype-dsds-nsns | |||
- name: All specified with empty strings | |||
namespace: "" |
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 the expected now be default
?
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.
this is test for injecting index, it does not change existing values.
we either generate index based on these values or we're adding add_fields
processor with correct values
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.
we need both. values and index must match.
In a follow up we can discuss, if we should even error if it is "".
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.
@michalpristas I also thought the result should be default?
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.
i think we can fix it but outside of injectIndex rule, what this should do is injecting index and not modifying anything on top of that.
@@ -39,7 +39,8 @@ | |||
- Remove fleet admin from setup script {pull}18611[18611] | |||
- Correctly report platform and family. {issue}18665[18665] | |||
- Clean action store after enrolling to new configuration {pull}18656[18656] | |||
[Ingest Manager] Avoid watching monitor logs {pull}18723[18723] | |||
- Avoid watching monitor logs {pull}18723[18723] |
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.
double entry?
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.
no i'm just fixing format of previous one
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.
LGTM, test look complete and easy to remove.
…lastic#18769) [Ingest Manager] Guard against empty stream.datasource and namespace (elastic#18769)
…lastic#18769) [Ingest Manager] Guard against empty stream.datasource and namespace (elastic#18769)
What does this PR do?
This PR fallbacks to default values if namespace or datasource is an empty string
Why is it important?
Empty string is not a valid value
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.