Skip to content

Splunk metric names should be validated via regex #34275

Closed
@spiffyy99

Description

@spiffyy99

Component(s)

internal/splunk

Describe the issue you're reporting

Currently, while parsing splunk metric fields from events (starting with metric_name), no validation is done to ensure the metric names actually fit with Splunk criteria. According to the Splunk documentation, metric names have the following restriction:

Metric names can include only upper-case letters, lower-case letters, numbers, underscores, dots, and colon symbols.
Metric names cannot include spaces or the reserved term metric_name. Metric names cannot begin with numbers or underscores.

It follows that field names that don't follow this convention should be designated as dimensions rather than metric datapoints.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions