Coder Social home page Coder Social logo

andrea-falco / lens-multi-pod-logs Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 8.0 1.62 MB

Multi pod and container logs for Lens

Home Page: https://www.npmjs.com/package/@andrea-falco/lens-multi-pod-logs

License: MIT License

JavaScript 7.40% TypeScript 92.60%
kubernetes logs stern

lens-multi-pod-logs's People

Contributors

an-falco avatar andrea-falco avatar remixtj avatar ttrinidad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lens-multi-pod-logs's Issues

Find / copy support?

Hi, will these features be added at some point? Or am I missing something obvious to enable them?

Option to set start time of logs

image
Currently logs started since a second before. My typical use case is checking logs after something goes wrong and this «after» often is more earlier rather than 1 second

Option to add custom template

I am using a custom template for stern to not have such a long prefix as the default.
Right now, I have to execute the command manually.

Could you add an option to be able to add a custom template in the settings?
I guess a simple text box which's content (if not empty) gets appended to the command with the --template -Tag would be enough.

Can we limit logs from only certain containers

Currently logs from all the containers in all the pods are being written to the terminal. Could we have an option to select only specific containers. I think having sub menus to select a container would be possible in lens.

Error: stern reached the maximum number of log requests (50)

Hi!
I have deployment with 30 pods and 3 containers.

When i try to read logs i get this error:

stern deployment/api --color auto --namespace default --since 1s
➜  ~ stern deployment/api --color auto --namespacedefault --since 1s
...
CUT: <list of pods and container>
...
Error: stern reached the maximum number of log requests (50), use --max-log-requests to increase the limit 

how can i pass this parameter?

stern not found if install stern by kubectl krew

Hi, First of all I think this couldn't really be an issue at all but it will be greatly appreciated if the plugin cover this little problem.

I install stern with krew by kubectl krew install stern in my powershell teminal.
To use stern I have to run kubectl stern instead of single stern command
so when using this plugin on lens I got this error.

PS C:\Users\user> stern deployment/web --color auto --namespace project_namespace --since 1s
stern : The term 'stern' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or 
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ stern deployment/web --color auto --namespace project_n ...
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (stern:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

My solution is to mapping kubectl stern command to stern for example in powershell terminal.

function stern {
    kubectl stern $args
}

grep or search capabilities

I would like to ask if its possible to limit the output by an specific pattern given by a search input field?

For example, I'm using this extension for access log across multiple pods, but I'm only looking for an specific IP.

stern supports --include and --exclude natively.

Not compatible with openlens-node-pod-menu

When both openlens-node-pod-menu + lens-multi-pod-logs are installed none of them work :-(

It would be great if we could have both extensions installed at the same time.

StatefulSet support

Hi, thanks for this helpful extension!

Would it be possible to provide the same functionality for StatefulSets as well?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.