If you are planning to do this once, you could probably get away with grep and regular expressions.
You don't mention the operating system, so that makes things a bit more difficult to answer very precisely.
Grep is present on Unix/Linux, but you could also get it on Windows with Cygwin. Or there is a lot of other tools that support regular expressions for splitting and recombining things, starting from Perl
Specifically on Windows, you could look at PowerShell that has a bit of a learning curve but is very powerful. You can see the discussion on StackOverflow around it.
Also on Windows, there is a LogParser which is oldie but goodie and designed specifically for logs. Hanselman's article could be a good introduction.
Finally, if you need something with a lot more power for more permanent infrastructure, you could look at LogStash and/or Graylog. There is an article explaining the setup for both.