grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.96k stars 3.45k forks source link

Filter operators documentation #739

Closed pracucci closed 5 years ago

pracucci commented 5 years ago

According to docs/usage.md, Grafana supports the filter expression in the format {job="mysql"} |= "error" where the supported filter operators are:

Digging in the source code, I've the feeling such filter operators have not been implemented and Loki actually always use a regex match.

Is my understanding correct? If yes, do you agree if we update usage.md to reflect the current implementation?

cyriltovena commented 5 years ago

It is implemented in the logql package. There’s also a PR for an evolution of this.

pracucci commented 5 years ago

How can I practically use it via Grafana o calling the query API? Do you mind sharing any hint, please?

On Wed, Jul 10, 2019, 23:51 Cyril Tovena notifications@github.com wrote:

It is implemented in the logql package. There’s also a PR for an evolution of this.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grafana/loki/issues/739?email_source=notifications&email_token=AAM7QEDQEG22CQDBUVSV63DP6ZKWTA5CNFSM4H7WE7N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZU26OA#issuecomment-510242616, or mute the thread https://github.com/notifications/unsubscribe-auth/AAM7QEDNLUGTXRTXCZWOJ3DP6ZKWTANCNFSM4H7WE7NQ .

pracucci commented 5 years ago

Duplicate of https://github.com/grafana/loki/issues/707. I will follow up in the original issue. Sorry for the noise.