Skip to content

Support duration days in LogQL filter #4706

Closed

Description

Currently we don't support {app="foo"} | logfmt | length > 5d but I think we should since this is supported in Prometheus and range vector selection.

The change needs to happen here

func tryScanDuration(number string, l *scanner.Scanner) (time.Duration, bool) {

We should try model.Duration from prometheus, and update all tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    keepaliveAn issue or PR that will be kept alive and never marked as stale.type/enhancementSomething existing could be improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions