[kwlug-disc] Scripting in Linux and unit.d

Paul Nijjar paul_nijjar at yahoo.ca
Tue Jan 10 21:56:48 EST 2012


On Mon, Jan 09, 2012 at 02:24:48PM -0500, Colin K wrote:
> Well since i started this thread i didnt really expect it to take on a life
> of its own so i almost feel like this is off topic at this point.  (dont
> poke the devs' :P) Anyways bash script looks like it would be lovely a
> current application that im looking to try and write is something to split
> a monolithic .log file for my minecraft server im guessing it would require
> grep and some other such stuff but all of this massive central log is just
> ugly and painful to sort through.  Server isnt even hugely popular yet and
> its already an 11mb log file.  Its fairly important that I can search
> through it for keywords and retain the logs for some time to help sort out
> disputes and track staff abuse.

Could you post some sanitized excerpts of the logfiles and what in
particular you want to capture?

I think John's suggestions to use Perl are basically sound.

- Paul




More information about the kwlug-disc mailing list