Skip to content
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

Add flag to enable logsdb mode in logs data streams #1939

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jul 2, 2024

Add a new profile parameter, stack.logsdb_enabled, to enable the feature flag that enables the logs index mode in all logs data streams (elastic/elasticsearch#108762), in stacks that support it.

This can be tested now with the 8.15 snapshots, for example:

elastic-package stack up -v -d -U stack.logsdb_enabled=true --version 8.15.0-SNAPSHOT

Closes #1842.

@jsoriano jsoriano requested review from ruflin and a team July 2, 2024 18:43
@jsoriano jsoriano self-assigned this Jul 2, 2024
Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a manual test and the flag works as expected.

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jsoriano
Copy link
Member Author

jsoriano commented Jul 3, 2024

As discussed internally, we need to disable validation for normalized fields when logsdb is used, because it is going to use synthetic mode.

In fd68bfc I have refactored our detection of synthetics mode to be based on the simulated index template for the data stream, instead of using the component template provided by the package.

@jsoriano jsoriano requested review from ruflin and mrodm July 3, 2024 08:03
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @jsoriano

Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Checked that it reports what it is expected in two different packages:

@jsoriano jsoriano merged commit 72545b0 into elastic:main Jul 3, 2024
3 checks passed
@jsoriano jsoriano deleted the logsdb-flag branch July 3, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test LogsDB early with integrations
4 participants