Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42786 > unrolled thread
| Started by | rh <richard_hubbe11@lavabit.com> |
|---|---|
| First post | 2013-04-04 18:00 -0700 |
| Last post | 2013-04-07 00:09 -0400 |
| Articles | 5 — 5 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Python log parser rh <richard_hubbe11@lavabit.com> - 2013-04-04 18:00 -0700
Re: Python log parser Grant Edwards <invalid@invalid.invalid> - 2013-04-05 13:31 +0000
Re: Python log parser Nac Temha <naccttemha@gmail.com> - 2013-04-05 16:42 +0300
Re: Python log parser darnold <darnold992000@yahoo.com> - 2013-04-05 13:42 -0700
Re: Python log parser Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-04-07 00:09 -0400
| From | rh <richard_hubbe11@lavabit.com> |
|---|---|
| Date | 2013-04-04 18:00 -0700 |
| Subject | Re: Python log parser |
| Message-ID | <mailman.120.1365123545.3114.python-list@python.org> |
pydoc syslog That intenough? On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha <naccttemha@gmail.com> 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?
[toc] | [next] | [standalone]
| From | Grant Edwards <invalid@invalid.invalid> |
|---|---|
| Date | 2013-04-05 13:31 +0000 |
| Message-ID | <kjmjod$o0g$1@reader1.panix.com> |
| In reply to | #42786 |
On 2013-04-05, rh <richard_hubbe11@lavabit.com> wrote:
> On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha <naccttemha@gmail.com> 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
[toc] | [prev] | [next] | [standalone]
| From | Nac Temha <naccttemha@gmail.com> |
|---|---|
| Date | 2013-04-05 16:42 +0300 |
| Message-ID | <mailman.140.1365169349.3114.python-list@python.org> |
| In reply to | #42818 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Apr 5, 2013 at 4:31 PM, Grant Edwards <invalid@invalid.invalid>wrote: > On 2013-04-05, rh <richard_hubbe11@lavabit.com> wrote: > > On Fri, 5 Apr 2013 02:17:55 +0300 Nac Temha <naccttemha@gmail.com> > 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). > > Thanks for understand me. > That's not what the OP asked about. > > The OP asked about parsing syslog files, not generating syslog file > entries. > > Can syslog module parsing syslog messages? I give you example for better explain this matter; I can parse perl module( http://search.cpan.org/dist/Parse-Syslog/lib/Parse/Syslog.pm). I obtained host,program,message text. I want to do them with python. > 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 > -- > http://mail.python.org/mailman/listinfo/python-list >
[toc] | [prev] | [next] | [standalone]
| From | darnold <darnold992000@yahoo.com> |
|---|---|
| Date | 2013-04-05 13:42 -0700 |
| Message-ID | <4efea6c8-8943-450c-8e6d-5f145fb5f514@y12g2000yqb.googlegroups.com> |
| In reply to | #42821 |
i know literally nothing about syslogs, but a google search for "python syslog parser" shows that some people have had success using the pyparsing module: http://www.j-schmitz.net/blog/how-to-parse-a-syslog-logfile-in-python https://gist.github.com/leandrosilva/3651640 hth, Don
[toc] | [prev] | [next] | [standalone]
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Date | 2013-04-07 00:09 -0400 |
| Message-ID | <mailman.228.1365307790.3114.python-list@python.org> |
| In reply to | #42818 |
On Fri, 5 Apr 2013 16:42:27 +0300, Nac Temha <naccttemha@gmail.com>
declaimed the following in gmane.comp.python.general:
> Can syslog module parsing syslog messages? I give you example for better
> explain this matter; I can parse perl module(
> http://search.cpan.org/dist/Parse-Syslog/lib/Parse/Syslog.pm). I obtained
> host,program,message text. I want to do them with python.
>
parse::syslog is not the same as sys::syslog
Python's syslog module does what sys::syslog does -- it /writes/
syslog data, it does NOT read it.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web