-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Fleet] use lowercase dataset in template names #180887
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
/ci |
💚 Build Succeeded
Metrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: |
I'm wondering if this could be considered a breaking change that the name of the templates are changing. However, having uppercase letters in index template/component template names never seemed to work in elasticsearch. |
@@ -16,7 +16,7 @@ export function getRegistryDataStreamAssetBaseName(dataStream: { | |||
type: string; | |||
hidden?: boolean; | |||
}): string { | |||
const baseName = `${dataStream.type}-${dataStream.dataset}`; | |||
const baseName = `${dataStream.type}-${dataStream.dataset.toLowerCase()}`; |
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.
Just a question: if I understand correctly, those templates from now on will be forced to have lowercase names. Could there be any risk in forcing this change?
Pinging @elastic/fleet (Team:Fleet) |
Wondering the same, it probably never worked but I think that we should highlight that this is forced from now on. Maybe let it know to integrations stakeholders or add it to the release notes. There could be some edge case that we don't foresee and would discover down the line. |
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.
Added some comments but LGTM 🚢
Yes, it will be included in the release notes as a fix. I can send out an email to package developers as well to let them know. |
## Summary Closes elastic#180877 See repro steps in linked issue. Using lowercase dataset name in template/pipeline names solves the issue with the upgrade. Will do more testing to make sure the lowercase naming doesn't cause any issue with agent ingesting. Verification: - Tested locally by using a custom log path `/var/tmp/test.log` with a few lines of logs on a multipass vm. - Enrolled an agent and verified that the data is going to the `logs-test` data stream. - The integration policy is created on Custom Logs version 1.1.2 with `dataset:Test` and upgraded to 2.3.1. - The component, index template and ingest pipeline is using a lowercase `logs-test` prefix. <img width="1787" alt="image" src="https://github.com/elastic/kibana/assets/90178898/979d77d3-ba11-4d96-9870-5488c57d7aaf"> <img width="1033" alt="image" src="https://github.com/elastic/kibana/assets/90178898/3c871462-0498-4b2f-836f-d4b84ac4cf46"> <img width="915" alt="image" src="https://github.com/elastic/kibana/assets/90178898/e5d34264-650c-4313-b5f6-ff44b0af171d"> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Summary
Closes #180877
See repro steps in linked issue. Using lowercase dataset name in template/pipeline names solves the issue with the upgrade.
Will do more testing to make sure the lowercase naming doesn't cause any issue with agent ingesting.
Verification:
/var/tmp/test.log
with a few lines of logs on a multipass vm.logs-test
data stream.dataset:Test
and upgraded to 2.3.1.logs-test
prefix.Checklist