Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #56425

Re: Re for Apache log file format

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; 'apache': 0.15; '\'"\'': 0.16; "'-'": 0.16; 'csv': 0.16; 'delimiter': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'specifying': 0.16; 'subject:Apache': 0.16; 'subject:format': 0.16; 'subject:log': 0.16; 'sender:addr:gmail.com': 0.17; 'module': 0.19; 'cc:addr:python.org': 0.22; 'skip': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'work.': 0.31; 'file': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'done': 0.36; 'space': 0.40; 'read': 0.60; 'field.': 0.61; 'field': 0.63; 'to:addr:gmail.com': 0.65; 'characters,': 0.84; 'these.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iRV/+6N95h6MYqxrcOFCIhsnDtBhz9HNn1Z6r7rcRMA=; b=yDvyMRDX/goM+YoikcT+8CWSXNdT8qt7iSwAdkFhJKW7h6bXReuAsCocopFHS+vfL/ ivCzippBJqC5fLsNAHO3/1eZ3FuRtvmtHJhqmIQVRHFj7LbK12udyiM01J/QGqpk0DLM pO3Wh2kGQexL197y9wcCMnRzdIfEHFQP9QCtHzXxMRgjtqYYGQH6VTm7wFTBLDLTDlyG LbXtjnkwaaVWsg66ibh6OX0lajJWdD3pMt4es9Ua2RIKSmi17BFm/njKv1gRle3xsY/b C5X24evK65h/dRn2kLleNSlGYFAkkH5AnxuajLwCAFY71SCu3uYExN0UYG/EPYYlhGuw buew==
MIME-Version 1.0
X-Received by 10.50.20.137 with SMTP id n9mr1874816ige.13.1381247991205; Tue, 08 Oct 2013 08:59:51 -0700 (PDT)
Sender skip.montanaro@gmail.com
In-Reply-To <l319gm$cl6$2@dont-email.me>
References <mailman.832.1381215979.18130.python-list@python.org> <l319gm$cl6$2@dont-email.me>
Date Tue, 8 Oct 2013 10:59:51 -0500
X-Google-Sender-Auth CZXp7ObhqdHTJewRZz2VZ6cAaXM
Subject Re: Re for Apache log file format
From Skip Montanaro <skip@pobox.com>
To Denis McMahon <denismfmcmahon@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.862.1381247993.18130.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1381247994 news.xs4all.nl 16000 [2001:888:2000:d::a6]:36067
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:56425

Show key headers only | View raw


> Aiui apache log format uses space as delimiter, encapsulates strings in
> '"' characters, and uses '-' as an empty field.

Specifying the field delimiter as a space, you might be able to use
the csv module to read these. I haven't done any Apache log file work
since long before the csv module was available, but it just might
work.

Skip

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re for Apache log file format Sam Giraffe <sam@giraffetech.biz> - 2013-10-07 23:33 -0700
  Re: Re for Apache log file format Neil Cerutti <neilc@norwich.edu> - 2013-10-08 12:50 +0000
  Re: Re for Apache log file format Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-08 15:48 +0000
    Re: Re for Apache log file format Skip Montanaro <skip@pobox.com> - 2013-10-08 10:59 -0500
  Re: Re for Apache log file format Piet van Oostrum <piet@vanoostrum.org> - 2013-10-09 13:33 -0400

csiph-web