|
|
| Next: SATA hot-swap support in etch? |
| Author |
Message |
Martin Marcher External

Since: Mar 23, 2007 Posts: 6
|
Posted: Wed Jun 27, 2007 11:20 pm Post subject: central logging to a database Archived from groups: linux>debian>isp (more info?) |
|
|
Hello,
we're not exactly an ISP but I guess people subscribed to this list
are the ones with the best knowledge, feel free to point to the
appropriate place if i'm absolutely OT
I'm planning on setting up a central log server. I'd like to log
everything from the last 2 rotations (guess in my case 2 days should
be enough) locally for a fallback and also log everything to the sql
database - is that even a smart approach (logging to 2 places, i know
that i need to know myself how much fallback i need in case the
central log server goes down)
Now initial googling pointed me to 2 solutions and an interesting info
1) a "well known" solution (bunch of howtos available on the net) of
using the remote logging abilities of syslog(-ng) to a central log
server and from there having a pipe that is read and then in turn
paste that to the sql database. The problem is i couldn't find any
reports on how reliable that works and somehow I have a bad feeling
about that, imho it breaks the chain of well crafted logging measures
not to loose messages. Am I hunting ghosts and this is tested well
enough not to worry?
2) the other was rsyslog (http://www.rsyslog.com/) which can from the
description receive remote logging just like syslog but has the
ability of logging natively to at least mysql. The big problem I see
here ist that it isn't natively available in debian, this is solveable
but to be honest I'd like to stay within debian standard repositories
for such a central daemon as the logger.
The info i found while googling (which of course i was too dumb to
bookmark) was about some kind of standard schema used for database
logging so that one, at least in theory, could switch backends with
less efforts since a bunch of tools (i think it was monitorware but
that led me to some commercial site besides phplogcon for which i read
a lot of bad reviews.) rely on that schema. Is there something like
that (at least some commonly used schema) or am i on my own?
thanks
martin
--
To UNSUBSCRIBE, email to debian-isp-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org |
|
| Back to top |
|
 |
Thomas Goirand External

Since: Apr 09, 2005 Posts: 161
|
Posted: Tue Jul 03, 2007 1:10 pm Post subject: Re: central logging to a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Martin Marcher wrote:
> Hello,
>
> we're not exactly an ISP but I guess people subscribed to this list
> are the ones with the best knowledge, feel free to point to the
> appropriate place if i'm absolutely OT
>
> I'm planning on setting up a central log server. I'd like to log
> everything from the last 2 rotations (guess in my case 2 days should
> be enough) locally for a fallback and also log everything to the sql
> database - is that even a smart approach (logging to 2 places, i know
> that i need to know myself how much fallback i need in case the
> central log server goes down)
Hi,
I don't know what you exactly need to log, but here is what I do.
For web, I use mod_log_sql (available in SID, as I did the packaging).
For ftp and mail, we wrote small daemons (mysqmail) that reads the
mail.log and pure-ftpd.log files, and write in real time in the SQL too.
That is a quite nice solution that can scale as much as you want.
Thomas
--
To UNSUBSCRIBE, email to debian-isp-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |
Martin Marcher External

Since: Mar 23, 2007 Posts: 6
|
Posted: Wed Jul 04, 2007 10:10 pm Post subject: Re: central logging to a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
hi,
On 7/3/07, Thomas Goirand <thomas DeleteThis @goirand.fr> wrote:
> I don't know what you exactly need to log, but here is what I do.
i'd like to stay with syslog (or a software capable of providing
syslog like capabilities) so that i don't have to care about every
package.
i'm thinking of using syslog to forward everything to a central
loghost, which can be done easily. from that loghost i'd like to write
to a database, now i'm just concerned with breaking the carefully
crafted code from logging daemons not to loose messages and just have
a bad feeling about using a pipe and a shelll script that loops in
"while true;logging stuff;done" manner as described all over the web
so the question really is if this solution really "breaks" that much
or if it is reliable enough to use it for logging
--
To UNSUBSCRIBE, email to debian-isp-REQUEST DeleteThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster DeleteThis @lists.debian.org |
|
| Back to top |
|
 |
Jean-Paul Blaquiere External

Since: Aug 09, 2006 Posts: 10
|
Posted: Thu Jul 05, 2007 2:30 am Post subject: Re: central logging to a database [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
> On Jul 04, Martin Marcher illuminated :
> i'd like to stay with syslog (or a software capable of providing
> syslog like capabilities) so that i don't have to care about every
> package.
>
syslog-ng is your friend.
it will log to mysql:
http://vermeer.org/docs/1
it does its network traffic via tcp, not udp too.
'apt-get install syslog-ng' in it's default config is a drop in
replacement for sysklogd. So you can install it and then migrate to
centralised logging, and database backed logging at your leisure.
../jp
--
Jean-Paul Blaquiere
jeanpaul.TakeThisOut@blaquiere.id.au
http://www.blaquiere.id.au
http://japester.ucc.asn.au/
--
To UNSUBSCRIBE, email to debian-isp-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|