You might have a problem if another bracket shows up later on in the line for some reason. Try this:
/^(\S+) (\S+) ([^\[]+) \[...Of course if you're using Apache just use the CustomLog directive to define your own easily parsed log file format and be done with it.
In reply to Re: A rare, insidious logfile parsing pitfall
by Fletch
in thread A rare, insidious logfile parsing pitfall
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |