Open jkfran opened 2 months ago
@jkfran Thanks for the request, this is a great idea and this should be possible with loki 3.0+: https://github.com/grafana/loki/pull/8962, and was added to core Grafana Explore in 10.2.3. However there isn't a way to get this functionality in the current iteration of the Logs Explore app.
@zizzpudding I know we're busy in the short-term, but maybe in the future we could solve two issues with one PR, and address this and https://github.com/grafana/explore-logs/issues/742 by potentially adding a way for users to "submit" a line filter (with an AND or OR relation), that will stick in the top with the other variables. Then this text input becomes the line filter "editor", but users can add one or many line filters with relations instead of trying to maintain one potentially complicated input potentially needing parentheticals etc. That might be a reasonable compromise of allowing more advanced usage without adding a bunch of complexity to the UI?
I would like to request the ability to use binary operators (like
OR
andAND
) in the line filters (Search in log lines). I couldn't find a way to do it in this input, I tried with different operators and regext.The reason for this request is that many of my colleagues across the company are not familiar with LogQL but are used to log search systems where binary operators are commonly used.
Since this plugin is supposed to cater to users less familiar with LogQL, adding support for these operators would make it much more intuitive and easier for them to adopt.
This would simplify queries and improve usability for those transitioning from other systems.
Would it be possible to add this feature or provide guidance on whether this is achievable with current functionality?