VictoriaMetrics / victorialogs-datasource

Grafana datasource for VictoriaLogs
Apache License 2.0
92 stars 5 forks source link

Explore show live logs mode #83

Closed yuriydzobak closed 2 weeks ago

yuriydzobak commented 1 month ago

Hi, As VictoriaLogs ahs live tailing mode It would be nice if plugin will have this feature as well Loki has it in their plugin For example open loki play

screenshot-000456 and it expand ui in explore mode screenshot-000457 Maybe Loki has a refresh mode instead of a live tailing mode like VictoriaLogs. However, it would be a useful feature for debugging apps in live mode.

dmitryk-dk commented 2 weeks ago

Hi @yuriydzobak ! The feature was added in the release. Could you please check it? I close the issue. If you find any problems with new release please reopen the issue

maxpain commented 2 weeks ago

@dmitryk-dk I've just checked, and it works perfectly!

maxpain commented 2 weeks ago

I think I've found the bug. The "Clear logs" button breaks loading the new log entries.

https://github.com/user-attachments/assets/38cdb946-c995-438a-b062-55607652776c

maxpain commented 2 weeks ago

I also found a strange bug. The live mode ignores my filter for some reason.

https://github.com/user-attachments/assets/88a0be01-c2d5-43fc-814c-00f262db05ce

dmitryk-dk commented 2 weeks ago

I also found a strange bug. The live mode ignores my filter for some reason.

Screen.Recording.2024-11-07.at.16.57.34.mov

Could you check the request via vllogcli or with a request to the tail endpoint? I suppose it is a bug on the VictoriaLogs side. Because the query moves to VL as is, and there are no modifications.

dmitryk-dk commented 2 weeks ago

I think I've found the bug. The "Clear logs" button breaks loading the new log entries.

Screen.Recording.2024-11-07.at.16.51.59.mov

Ok, will check, maybe miss something in the handlers

archef2000 commented 5 days ago

Does it support live logs in the grafana logs dashboard?

dmitryk-dk commented 5 days ago

Does it support live logs in the grafana logs dashboard?

I am not sure that Grafana supports it on the dashboard, either. Explore works. Need to check. If it is, we will make changes

archef2000 commented 5 days ago

MQTT supports it in the dashboard while LOKI doesn't and I only want to use one log datasource and I am currently using LOKI. Even when both support live logs in the explorer tab.

dmitryk-dk commented 5 days ago

MQTT supports it in the dashboard while LOKI doesn't and I only want to use one log datasource and I am currently using LOKI. Even when both support live logs in the explorer tab.

Ok, need to check and discuss how to better implement this feature

dmitryk-dk commented 1 day ago

I think I've found the bug. The "Clear logs" button breaks loading the new log entries.

Screen.Recording.2024-11-07.at.16.51.59.mov

Hi! I have checked this behavior with Grafana 11.3.0 and it works well check_live_clear_logs

archef2000 commented 1 day ago

Does it work with a dashboard to have live logs? And is there a good docker compose to go of for running VictoriaLogs in a docker swarm? Could only find the helm repo but that does not help much. And here I found the docker folder, but is that all necessary?

dmitryk-dk commented 10 hours ago

Does it work with a dashboard to have live logs? And is there a good docker compose to go of for running VictoriaLogs in a docker swarm? Could only find the helm repo but that does not help much. And here I found the docker folder, but is that all necessary?

Hi @archef2000 ! At that moment live logs only work in the explore mode.

Can you check this folder ? Here, you can find any docker installations and make files that help you run them. It is all necessary to run the vmlogs in the docker. If you find any issue you can open it in the main repository if it is related to docker or docker-compose files.