1

Access log field - using awk to pull date/time

view story
linux-howto

http://www.unix.com – hey guys. the following line is a line taken from apache's access_log Code: 10.10.10.10 - jdoe [28/Jun/2012:14:24:15 +0000] "GET /images/down.gif HTTP/1.1" 304 I'm concerned about the field that has the date and time in it. if assuming the delimiter in the file is a space, then the fourth field will always have the date and time in it. however, it is my understanding that the date and time may not always be in the fourth field. depending on the other fields, the date and time may be in random fields. so my question is, what kind of awk scripting can i use to find the field (HowTos)