src/inc/apacheLog.h 1.2
1.2 2009/08/27 20:17:11 galt
somebody not me forgot to check in the .h file
Index: src/inc/apacheLog.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/apacheLog.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -B -U 1000000 -r1.1 -r1.2
--- src/inc/apacheLog.h 3 Sep 2005 02:07:42 -0000 1.1
+++ src/inc/apacheLog.h 27 Aug 2009 20:17:11 -0000 1.2
@@ -1,35 +1,37 @@
/* apacheLog - stuff to parse out apache web server logs, currently
* just the access log. */
#ifndef APACHELOG_H
#define APACHELOG_H
struct apacheAccessLog
/* Parsed out apache access log line */
{
struct apacheAccessLog *next;
char *buf; /* All memory for apacheAccessLog fields is allocated at once here. */
char *ip; /* IP Address: dotted quad of numbers, or xxx.com. */
char *dash1; /* Unknown, usually a dash */
char *dash2; /* Unknown, usually a dash */
char *timeStamp; /* Time stamp like 23/Nov/2003:04:21:08 */
char *timeZone; /* Extra number after timeStamp, usually -0800 */
char *method; /* GET/POST etc. */
char *url; /* Requested URL */
char *httpVersion; /* Something like HTTP/1.1 */
int status; /* Status code - 200 is good! */
char *num1; /* Some number, I'm not sure what it is. */
char *referrer; /* Referring URL, may be NULL. */
char *program; /* Requesting program, often Mozilla 4.0 */
+ time_t tick; /* Unix tick (seconds since 1970) - derived from timeStamp. */
+ int runTime; /* Overall time (optional) in seconds */
};
struct apacheAccessLog *apacheAccessLogParse(char *line,
char *fileName, int lineIx);
/* Return a apacheAccessLog from line. Return NULL if there's a parsing
* problem, but don't abort. */
void apacheAccessLogFree(struct apacheAccessLog **pLl);
/* Free up apacheAccessLog. */
#endif /* APACHELOG_H */