VictoriaMetrics icon indicating copy to clipboard operation
VictoriaMetrics copied to clipboard

app/vmui/logs: fix missing field values in auto-complete

Open arturminchukov opened this issue 8 months ago • 3 comments

Describe Your Changes

Related issue: #8749 Added query to requests /field_names and /field_values to get more precision results:

  • If filterName is _msg or _stream_id, the query cannot be generated specifically, so a wildcard query ("*") is returned.

  • If filterName is _stream, the query is generated using regexp ({type=~"value.*"}).

  • If filterName is _time, a simplified query is created by trimming the value up to the first occurrence of a delimiter such as - or :.

  • For all other values of filterName, a prefix query is returned using the query value with a * appended (e.g., "value*").

Related issue: #8806 Enhanced autocomplete with parsed field suggestions from unpack pipe.

Checklist

The following checks are mandatory:

arturminchukov avatar Apr 23 '25 20:04 arturminchukov

If filterName is _time, a simplified query is created by trimming the value up to the first occurrence of a delimiter such as - or :

It would be nice if you could include other logical operators like :-, :!, :=. For example, you could write field:- "e", field:=word, or field:!info. Currently, the autocomplete trigger only activates with field:, so when you need to exclude something, you have to move the cursor again to add these operators. screenshot-001362

yuriydzobak avatar Apr 26 '25 18:04 yuriydzobak

It would be nice if you could include other logical operators like :-, :!, :=. For example, you could write field:- "e", field:=word, or field:!info. Currently, the autocomplete trigger only activates with field:, so when you need to exclude something, you have to move the cursor again to add these operators.

Thanks for comment! Added it now.

https://github.com/user-attachments/assets/2f582bc4-4d16-4ee4-81fd-6f251947b95d

arturminchukov avatar May 13 '25 16:05 arturminchukov

Hi,
I'm just curious when this feature will be included in release. Thanks

yuriydzobak avatar Jun 06 '25 15:06 yuriydzobak

@arturminchukov , thanks for the fix!

valyala avatar Jun 18 '25 23:06 valyala