Skip to content

[UnifiedLogs] Add data_stream.dataset option to the unifiedlogs input package #15295

@leandrojmp

Description

@leandrojmp

Similarly to other input packages, we want to add the ability to customize the dataset name for better data organization.

eg https://github.com/elastic/integrations/blob/main/packages/winlog/manifest.yml#L33

Edited, original issue below

Integration Name

Custom macOS Unified Logs [unifiedlogs]

Dataset Name

No response

Integration Version

0.4.0

Agent Version

It is not relevant

Agent Output Type

elasticsearch

Elasticsearch Version

It is not relevant

OS Version and Architecture

It is not relevant

Software/API Version

No response

Error Message

The Index Template for the UnifiedLogs integration is not using the correct index pattern, the template logs-unifiedlogs is using the index pattern as logs-unifiedlogs-*, this index pattern is wrong and does not follows the data stream naming scheme of integrations.

By using the wrong index pattern, the data from the integration will match the catch all index template logs, and will ignore both the integration custom template logs-unifiedlogs@custom and also the integration ingest pipeline, it will also not have the correct index.default_pipeline and index.final_pipeline set.

Image

Event Original

No response

What did you do?

Add the Custom UnifiedLogs integration to an ingest pipeline.

What did you see?

The index pattern does not match the data stream name

What did you expect to see?

The index pattern should match the correct data stream name, so it needs to be changed to logs-unifiedlogs.*.

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions