Op 31 mrt. 2016 12:47 schreef "Simon Lyall" <si...@darkmere.gen.nz>:
>
> 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.

The first thing that comes to mind is grep, with -A and -B (after/before)
parameters. Not sure how it will perform with such big datasets, but it's
probably a lot quicker than vi ;).

Mvg, Guus Snijders
_______________________________________________
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/

Reply via email to