When I set up my stats I looked around a few times for some examples and never found anything. I finally got mine working recently, so I posted my formats as much for my own reference as anyone else.
First, this web server is nginx. Changing the log format is trivial. My nginx.conf log_format block looks like this: