On Thursday, June 29, 2006 12:13 PM [EDT],
Jeremy Wadsack <[EMAIL PROTECTED]> wrote:

I think the following will work, but you'll have to test it. The
first statement needs to be all on one line (the email software has
split it across three lines here).

LOGFORMAT (Date: %m/%d/%y %h:%n:%j %aM\nMethod: %j\nServer:
%j\nUser:%j\nClientIP: %S\nServerIP: %j\nDomain: %v\nContent-Type:
%j\nContent-Length: %b\nPath: %f\nOperation: %j\n

LOGFORMAT ------------------------------%j

These lines appear to work with the examples given, but frankly, if they were my logs, I would have preprocessed them to put everything on a singe line :-).

LOGFORMAT (Date:\t%m/%d/%y %h:%n:%j %aM\n%j\n%j\nUser:\t%S\n%j\n%j\nDomain:\t%v\n%j\n%j\nPath:\t%r\n%j)
LOGFORMAT (----------------------------------%j)

(I used \t for the tabs between columns, and junked the names of the fields that aren't required).

Aengus


See http://analog.cx/docs/logfmt.html for more details on the
LOGFORMAT command.

Hope that helps,

Jeremy Wadsack
Seven Simple Machines


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:analog-help-
[EMAIL PROTECTED] On Behalf Of hemiga
Sent: Thursday, June 29, 2006 2:24 AM
To: [email protected]
Subject: [analog-help] LOGFORMAT command help

Hi all,

I do not find out the correct syntax for the LOGFORMAT command to
this log file.
Problems are the several lines.
From this log file I need the following information:

DATE:
ClientIP:
Domain:
Path:

it would be great, if someone can help me
Many Thanks
hemiga

Date: 6/26/06 12:21:00 AM
Method: http
Server: ge-muc-nt-pxy
User: 172.29.146.12
ClientIP: 172.29.146.12
ServerIP: 255.255.255.255
Domain: www.jstv.co.uk
Content-Type: none
Content-Length: -1
Path: img/navi_home.gif
Operation: GET
----------------------------------
Date: 6/26/06 8:16:42 AM
Method: http
Server: ge-muc-nt-pxy
User: 172.29.16.119
ClientIP: 172.29.16.119
ServerIP: 255.255.255.255
Domain: www.chip.de
Content-Type: image/gif
Content-Length: 248
Path: Home/Loginbox/Unten_mitte_Kachel.gif
Operation: GET
----------------------------------
--


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
+------------------------------------------------------------------------
 TO UNSUBSCRIBE from this list:
   http://lists.meer.net/mailman/listinfo/analog-help

 Analog Documentation: http://analog.cx/docs/Readme.html
 List archives:  http://www.analog.cx/docs/mailing.html#listarchives
 Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

+------------------------------------------------------------------------
 TO UNSUBSCRIBE from this list:
   http://lists.meer.net/mailman/listinfo/analog-help

 Analog Documentation: http://analog.cx/docs/Readme.html
 List archives:  http://www.analog.cx/docs/mailing.html#listarchives
 Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------


+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to