Skip to content

[Logsdb] Strategy to enable logsdb it on stateful & documentation #12298

@lucabelluccini

Description

@lucabelluccini

On serverless, logsdb is enabled by default globally.

On stateful, we need to define and document how to:

  • Enable logsdb on a single integration (as long as the data stream is logs)
  • Enable logsdb on all logs-* integrations

Considerations:

  • Applicable only to 8.17+ as Logsdb became GA
  • We need to make sure logsdb is safe to be enabled on all integrations
    • If this assumption is not correct, then we need to find a way to mark integrations as "logsdb-compatible"

Strategies

Possible strategies (manual)

Those strategies should work (tested in 8.17), but they're not yet documented

A) To enable logsdb across all logs-* data streams.

B) To enable logsdb across all logs-* data streams which follow the Fleet Index Template structure

  • create/update the logs@custom component template and add settings.index.mode to logsdb
  • rollover manually or wait next rollover
    Risks:
  • If we change settings.index.mode in the future, users might have the burden or take all the @custom component templates and update them

C) To enable logsdb on a specific logs-* data stream belonging to an integration.

  • create/update the logs-<dataset>@custom component template and add settings.index.mode to logsdb
  • rollover manually or wait next rollover
    Risks:
  • If we change settings.index.mode in the future, users might have the burden or take all the @custom component templates and update them
  • Users might attempt to use this on non-logs data streams...

Possible strategies (via UI)

Offer some "opt-in" button to automate the processes above via Stack Management.

Related

Relevant SMEs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Integration:AllApplies to all integrations [Integration not found in source]Team:FleetFleet team [elastic/fleet]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions