Welcome! Log In Create A New Profile

Advanced

Re: Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

March 07, 2012 05:14PM
OK, I just knocked-out 50 push-ups as a punishment for this. There's absolutely nothing wrong with the logging module. Apparently, the Mac OS X Term was messing this up while I was copying and pasting into Textmate. I ran the logs through `cut` as well as a custom line parser and it's working perfectly fine. I apologize for the confusion, but trust me that I actually blew a day and a half wrestling with this before I figured-out that it was an issue with the copying and pasting from Term.

On another note, it would be cool if we could set a default character for NULL/empty variables. For example, instead of the '-' character, I would prefer just an empty char to be written since I'm doing a TSV format. This way, I wouldn't have to preprocess the logs and strip-out the '-' when importing to a DB store, etc.
Subject Author Posted

Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

adamchal March 06, 2012 02:00PM

Re: Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

Maxim Dounin March 06, 2012 04:18PM

Re: Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

adamchal March 07, 2012 05:14PM

Re: Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

adamchal March 08, 2012 05:14PM

Re: Collapsing Empty Variables in Nginx Access Log When Using TAB Delimiter

adamchal March 09, 2012 12:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready