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: 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: References: 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 To: Denis McMahon Content-Type: text/plain; charset=UTF-8 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 > 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