Qmail
[Top] [All Lists]

Re: loggin into db

To: qmail@list.cr.yp.to
Subject: Re: loggin into db
From: Kyle Wheeler <kyle-qmail@memoryhole.net>
Date: Sat, 27 Jan 2007 13:15:14 -0500
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=XFJ/R+YCt7s6pBHNkBYxmcsgpMD4UKAi/MaRNlGuD/YC7GivkL2sK90m+Fzb0bzQO4LK7syMnDvqfACuo6y9HRjbgwnxM+v70yVzraZPYwpD09kUidyFaTkzb3dQbS9l6/F0/DS1kIqGVhggjV+77Nl9Yc4sgylICA19OQWIbUM= ;
Domainkey-status: good
In-reply-to: <485458614.20070127172652@alcatel.sk>
Mail-followup-to: qmail@list.cr.yp.to
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <485458614.20070127172652@alcatel.sk>
User-agent: Mutt/1.5.13 (2007-01-02)
On Saturday, January 27 at 05:26 PM, quoth Miki:
I want ask you if there is any method or idea how can be multilog output redirected to write into database,

Umm, I think you may be confused here. Multilog is a program that takes a stream of text and writes it into a set of files. Multilog's "output", as it were, are files.

Now, instead of sending your stream of text (i.e. log content) to multilog, you could send it to some sort of program that would store the log content in a database. Or you could tell multilog that whenever a log must be rotated, it should be fed to a script that will store it into a database. What is it you're trying to achieve here?

I was thinking about pipelining "thru" some script, but there are many lines different, and on high rate it can slow down server a lot,

Indeed.

second is some "postprocessing" of log files and put result into db,

Such as whenever the main log gets rotated out?

for example some perl periodically scanning thru current file.

Or you could do that. That's pretty easy.

does anyone idea how to do it or know if its there such thing ?

"such a thing"?

"How to do it" depends on exactly what you want to do. Perhaps a better thing to do here is to ask the list for the best way to achieve whatever you want to achieve, rather than come up with a solution (such as using a perl script or whatnot) and ask if anyone has already written that solution for you.

What are you trying to achieve?

~Kyle
--
As we enjoy great Advantages from the Inventions of others we should be glad of an Opportunity to serve others by any Invention of ours, and this we should do freely and generously.
                                                 -- Benjamin Franklin

Attachment: pgpIXI4NbbScc.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>