Kubernetes Pod Logs – View Changed and most recent logs clipped

已回答

Either an accidental settings change or a software update has “broken” my ability to view pod logs in kubernetes using the IntelliJ Kubernetes plugin.  Logs used to appear in the “Services” section at the bottom, and would continuously stream (like “tail -f”), showing the most recent logs printed.  Now the log opens in the file viewer area, and it instead shows the oldest log entries.  See my attached screenshot.  How do I fix this?

// Thank you

 

5

Same for me, how to fix ? or clear the logs to get the latest ? 

1

I still don't know how to fix.  Workaround for now is to use the CLI to get logs based on the pod name:

kubectl logs -f my-app-12345-abcde

Pretty inconvenient to have to copy-paste the pod name into the CLI though.  

2

Hello, Hackerman1234, Damien B.. Please try to increase the Maximum log size value in the Settings | Build, Execution, Deployment | Kubernetes settings window:

 

-2

Olga Mulina  I swear it was working a few weeks ago.  It would show the bottom X lines (like tail -f <filename>), but now it shows the top X lines.  

Increasing max number of lines isn't sufficient, because no matter how big I make X, I will always find some log that exceeds the memory available.  I need to view the newest entires, not the oldest entries.  

3

Olga Mulina same for me, I don't want to store the logs of my Kubernetes cluster on my machine, I want to tail the latest logs.

It was working like that with the previous UI with the previous version of the plugin. 

4

Olga Mulina this is still an issue, has there been any progress on a resolution?

1

Jake Holland I opened a support request for this and normally it's fixed in 2025.1 EAP  but I don't have yet the time to check it

2

Damien B. if you get the time could you link to it below. cheers!

1

Feb 4, 2025 and STILL no resolution to this. This has broken a major part of my workflow. Obviously I can check k8s logs from command line but having this in the ide constantly streaming was really convenient.

To the Jetbrains Dev Team: there are two problems that need addressed here.

  • The logs need to show the LATEST LOGS NOT the EARLIEST LOGS
  • We need to be able to clear the logs from the ide so we can focus on dev work and not have the logs clogging up our view. Sometimes I want a clean slate so I can do some action and see those logs so I'll clear everything else so I can just see the ones I'm looking for. Why this feature was removed from the previous k8s plugin version is mind boggling
0

Hi, Pvaughn

Did you try 2025.1 EAP version? The IJPL-159791  feature should be implemented there, allowing ordering logs.

0

Olga Mulina 

Thanks, I'll take a look.

Any idea if we'll be able to clear the logs from the editor again? This used to be possible in the previous version of the plugin.

0

Olga Mulina 

Hello, I updated to EAP version recently and the main issue is kinda fixed, I can see the latest logs.

But the UX is still not really great: 

  • I don't have vertical scroll bar
  • scroll to end button doesn't work
  • no “clear logs” button like before
  • it's not possible to click on a class name in the logs (like in an exception stack trace) and navigate to it (it was possible in previous plugin version and it's really useful)

UX improvements in that feature will be really appreciated

Thanks,

0

Thank you for the updates. 

We have a feature request regarding the scroll bar here: IJPL-181311; please consider upvoting it to show your interest in the feature.
The Scroll to End button should work in the release version in IDE; we plan to release it in the beginning of April, so please let me know if there are any problems when 2025.1 is finally released. 
We plan to add the class name navigation this year, probably in 2025.2.

Regarding the Clear logs button - do I understand correctly you want to clear the Editor from the current log and watch logs from the moment you pressed the button? I'm asking because the use case is not clear for the development team. 

2

Hello, Thanks for the reply.

Regarding the Clear logs button - do I understand correctly you want to clear the Editor from the current log and watch logs from the moment you pressed the button? I'm asking because the use case is not clear for the development team. 

Yes your understanding is correct. 

0

Thank you for the confirmation, created the IJPL-181831 feature request for you. Please consider upvoting the request to show your interest; it will help us prioritize the issue if there is a high demand for it among our users. 

0

请先登录再写评论。