Re: Dealing with dynamic header in log file processing

2012-04-14 Thread Benny Tsai
Hi Cliff, There are at least 2 approaches you can try: 1. Use an atom to store the fields data, updating it whenever you encounter a #Fields row, and referencing it when processing data rows. 2. Use (reduce) to process the rows, using the accumulator to store both the current count and fields

Dealing with dynamic header in log file processing

2012-04-13 Thread Cliff Mosley
Prefacing this with being a complete Clojure novice, my question is more about approach than the actual code required. Like many, I have a few tried and true examples that I like to work through in each language. In my case, I have a set of IIS log files that I want to generate usage statistics