Sadly, the fileMode switch doesn't make a difference. Even when I specifically set it to -fileMode:1 which it should be by default (append=0, overwrite=1, do not overwrite=2), the same thing happens.
This really looks like a bug in that when there are 0 records for output, no template output is ever written. For instance, even if I split the template up into the three separate files for tplHeader, tpl and tplFooter (e.g. <LPHEADER>, <LPBODY> and <LPFOOTER>), I would expect that the header and footer sections still print because they contain important info such as fieldnames, timestamp, etc. However, since Log Parser first deletes the existing output file and then does not process (or at least output) the tplHeader/tplFooter files, no output is generated at all and I'm left with a missing file from my web site.
For testing, I am checking for IIS status code 500 errors in my log file. If none are found, the output file from the previous run gets deleted and not replaced. If I change my query to find at least one 5xx status code (different log file or date range), then the output file is created just fine.
With that said, is there any hope of a Log Parser 2.3 anytime in the near future?
-Jim