Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Python log parser Date: Fri, 5 Apr 2013 13:31:57 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 29 Message-ID: References: NNTP-Posting-Host: dsl.comtrol.com X-Trace: reader1.panix.com 1365168717 24592 64.122.56.22 (5 Apr 2013 13:31:57 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Fri, 5 Apr 2013 13:31:57 +0000 (UTC) User-Agent: slrn/1.0.1 (Linux) Xref: csiph.com comp.lang.python:42818 On 2013-04-05, rh wrote: > On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha wrote: > >> Hi, I'm working to parse log files. But I need to help this matter. I >> want to parse syslog(wihch program is running, timestamp,host,etc) of >> system I could not find any module of python for this. Or do you have >> suggestion? > > pydoc syslog > > That intenough? No. Can you be more specific? All the documentation I've found for the syslog module is for _generating_ log entries (it's a wrapper for the Unix syslog library). That's not what the OP asked about. The OP asked about parsing syslog files, not generating syslog file entries. Parsing syslog files is not a well-defined problem. The format of a syslog file depends on which system log daemon you're running and now it's configured. -- Grant Edwards grant.b.edwards Yow! Do I have a lifestyle at yet? gmail.com