Open kavirajk opened 3 years ago
How about supporting --addr=file://my/file/location.log
as well?
@jeschkies I like the idea. Default can be from stdout
if --addr
is not provided.
Also small additional notes
--addr
? for multiple files?--addr
.I would use wildcards pattern know from gitignore
and ls
. So --addr=file:///var/logs/*.log
or --addr=file:///var/logs/**
.
@kavirajk can we close the issue? it looks like the feature is already implemented
@vlad-diachenko It only implemented for log queries not for metric queries yet. I would recommend to keep it open for now.
Is your feature request related to a problem? Please describe. Say I have "existing" file with several log lines, And I need to query the file via LogQL (I know we can use
awk
,sed
,grep
but I love LogQL more :) )Describe the solution you'd like Support LogCli to read log lines from the stdin.
Describe alternatives you've considered Separate query tool to analyze existing log files without connecting to Loki server
Additional context LogQl is very powerful. Let's embrace it to use it on any log lines in the format
labels + timestamp
. Doesn't have to query only Loki server.Some of the immediate use cases.
Embrace
logql
as a text process tool for data in the keys=vals formatI can play with LogQL before actually using it in Grafana.
easy to {ask question about LogQL, experiment, show demo, etc.} without overhead of setting up Loki and promtail.
I ❤️ LogQL
Possible issues: