Have you tried grep -A 10 -B 10 <call number> *.log? or if they are gzipped use zgrep.
Thanks! Leila Kemery On Thu, Mar 31, 2016 at 3:46 AM, Simon Lyall <si...@darkmere.gen.nz> wrote: > I'm looking for a tool that might handle this nicely. > > I have some asterisk log files that are generated by daemontools' > multilog. The problem is that daemontools rotates logs every few minutes at > the volumes I do so a single call can be scattered across several files. > Total files might be a few GB. > > Does anyone know a good tool that let us search across multiple files for > strings and display them? (along with nearby lines). The basic requirements > are to trace a problem call by finding a number or call id and jumping > around checking the 10 lines or so on each side of it. > > What I've looked at so far: > > * The team currently use vi which doesn't support multiple files well > > * I had a look at use multiple search in less but this was pretty slow and > didn't seem to work nicely. > > * logstash and Elasticsearch would probably be the longer team option > although there doesn't seem to be a good built-in asterisk filter for > grok. > > * lnav ( http://lnav.org/ ) looks nice but doesn't have support for > multilog format and doesn't appear to actually search multiple > generations of files. > > > -- > Simon Lyall | Very Busy | Web: http://www.simonlyall.com/ > "To stay awake all night adds a day to your life" - Stilgar > > _______________________________________________ > Tech mailing list > Tech@lists.lopsa.org > https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech > This list provided by the League of Professional System Administrators > http://lopsa.org/ >
_______________________________________________ Tech mailing list Tech@lists.lopsa.org https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech This list provided by the League of Professional System Administrators http://lopsa.org/