amir20 / dozzle

Realtime log viewer for docker containers.
https://dozzle.dev/
MIT License
5.7k stars 287 forks source link

Searching logs only works sometimes #3240

Closed WeetbixNMilk closed 1 week ago

WeetbixNMilk commented 2 weeks ago

πŸ” Check for existing issues

How is Dozzle deployed?

Standalone Deployment

πŸ“¦ Dozzle version

v8.2.1

βœ… Command used to run Dozzle

A Vanilla install of the standard Dozzle container for Unraid. https://hub.docker.com/r/amir20/dozzle/

version: "3" services: dozzle: container_name: dozzle image: amir20/dozzle:latest volumes:

πŸ› Describe the bug / provide steps to reproduce it

Searching for a term will sometimes load infinitely, return a result, not return any results or hang. This is all on the same instance, without any restarts, changes or modifications. The search window is opened with Ctrl + F, issues occurs when both pasting and typing text.

I will attach screenshots, each image is taken consecutively, only clicking into a different container, and then back to the original container logs in between screengrabs. (I am aware the search just looks like it is loading, but it does this infinitely. Sometimes it loads immediately without even restarting the logged container).

Screenshot 2024-08-29 115021 Screenshot 2024-08-29 115202

πŸ’» Environment

Client: Version: 24.0.9 Context: default Debug Mode: false

Server: Containers: 56 Running: 43 Paused: 0 Stopped: 13 Images: 50 Server Version: 24.0.9 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 nvidia runc Default Runtime: runc Init Binary: docker-init containerd version: 7c3aca7a610df76212171d200ca3811ff6096eb8 runc version: v1.1.12-0-g51d5e94 init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 6.1.74-Unraid Operating System: Slackware 15.0 x86_64 (post 15.0 -current) OSType: linux Architecture: x86_64 CPUs: 24 Total Memory: 62.74GiB

πŸ“Έ If applicable, add screenshots to help explain your bug

No response

πŸ“œ If applicable, attach your Dozzle logs. You many need to enable debug mode. See https://dozzle.dev/guide/debugging.

No response

amir20 commented 2 weeks ago

Search only searches the buffer in the browser. It doesn't search beyond that and it doesn't hit the API. Is that what is happening here? It's not the best experience but without a true database I don't have a lot of options.

WeetbixNMilk commented 2 weeks ago

Search only searches the buffer in the browser. It doesn't search beyond that and it doesn't hit the API. Is that what is happening here? It's not the best experience but without a true database I don't have a lot of options.

That is very likely what is happening here. Sorry, I must have missed that when searching the documentation/issue forum.

Thanks for such a prompt reply.

amir20 commented 2 weeks ago

It's not perfect. But alternate option would be to read all the logs and search through that. That would most likely be very slow.

amir20 commented 2 weeks ago

After looking at a few other issues, I think I am going to move search to the API. There will be some performance issues but it's worth minimizing confusion.