Skip to content

/detected_labels endpoint incorrectly filters out fields with numeric values #16859

@trevorwhitney

Description

@trevorwhitney

Describe the bug
User reported a probe_success label with values 0 and 1 was being omitted from the label breakdown panel in Logs Drilldown (see screenshot below). This seems to be because of the behavior in the containsAllIDTypes filter, which removes numeric values in an effort to remove uids, which are by their nature high cardinality, but should not remove low cardinality numeric values like the his exmaple.

To Reproduce
Steps to reproduce the behavior:

  1. Send logs with a low cardinality numeric label, such as a binary 0 or 1
  2. Hit the /detected_labels endpoint with a selector that will match that stream
  3. See that your low cardinality numeric field is missing.

Expected behavior
Low cardinality numeric field is present in response

Environment:

  • Cloud Logs

Screenshots, Promtail config, or terminal output
Image

Metadata

Metadata

Assignees

Labels

good first issueThese are great first issues. If you are looking for a place to start, start here!type/bugSomehing is not working as expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions