Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Do we still use utilities like grep for searching logs? Are these when we cannot stream logs to tools like Splunk & Loggly and use their search services?


One problem is that you start using these services and then the bill arrives and you then spend all your time removing stuff from the logs to keep the bill down.


All of our logs are in Kibana, but sometimes I'll `kubectl logs pod > tmp; grep pattern tmp` because Kibana's search and filtering is often annoying. Actually, I'll usually open the logs in vim and use its search, which also get me the ability to eg delete every line not containing the pattern and then search only things matching the first pattern. I'm going to try lnav as mentioned in this thread but I've gotten by fine with judicious use of grep




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: