semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Problem: task log is no longer searchable

Open macau23 opened this issue 5 months ago • 8 comments

Issue

It used to be that I could open the task log and ctrl+f in Firefox to find the line matching what I am looking for. It would highlight the match. The browser search no longer finds anything outside of the visible viewport.

Impact

Web-Frontend (what users interact with)

Installation method

Package

Database

No response

Browser

No response

Semaphore Version

2.15.0

Ansible Version


Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

macau23 avatar Sep 05 '25 07:09 macau23

Same for semaphore-2.16.18-1.x86_64

Can I suggest this be bumped? Not being able to find anything in the logs makes using semaphore much less valuable!

macau23 avatar Sep 09 '25 07:09 macau23

Workaround: go to raw logs view and search there.

Edit: this will not work. There are no raw logs for a running task.

macau23 avatar Sep 09 '25 07:09 macau23

Workaround 2:

Visit /api/project/PROJECT_ID/tasks/TASK_ID/raw_output and refresh to get newest output. Then Ctrl+F will work.

macau23 avatar Sep 16 '25 19:09 macau23

raw_output is also not a good workaround, because there are no timestamps in that log.

macau23 avatar Nov 06 '25 06:11 macau23

@fiftin Please could the log files be searchable and not just viewable! Not being able to search in an active log during a run is very painful!

macau23 avatar Nov 06 '25 06:11 macau23

raw_output is also not a good workaround, because there are no timestamps in that log.

Can adding timestamps to raw output be workaround the problem?

fiftin avatar Nov 06 '25 07:11 fiftin

I think the user expects ctrl+f to search on the page. I think that should work!

But as a workaround timestamped raw logs would work, but:

  • there is no raw logs link during an active run
  • semaphore is adjusting the timezone for logs based on the client (i.e. not UTC like on the server)

macau23 avatar Nov 06 '25 08:11 macau23

@macau23 virtual scrolling used for task log viewing because huge output can't be rendered on the page without lags. So, standard search doesn't work. There are 2 options:

  1. raw log
  2. custom search - we will implement it but I don't know when

fiftin avatar Nov 06 '25 09:11 fiftin