LOGQL Query VIA API

Just write one query in Grafana and giving perfect result through Loki data source, but when I try with API.
http://localhost:3100/loki/api/v1/query_range?query={filename="/var/log/tempdata2.log",job=“varlogs”} | logfmt | line_format "{{ .project_id}} {{ .zone}} {{ .type}}

its showing complete data not from query mentioned in API. Any API parameter fault here ? Kindly let me know asap.
thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.