I have a lot of servers, is it better to use mysql logging?

General discussions here

I have a lot of servers, is it better to use mysql logging?

Postby abefroman on Mon Jun 30, 2008 9:30 pm

I have a lot of servers, 30-50, is it better to use mysql logging, log to a file?

TIA
abefroman
Advanced
 
Posts: 34
Joined: Thu Jun 05, 2008 6:14 pm

Re: I have a lot of servers, is it better to use mysql logging?

Postby rgerhards on Tue Jul 01, 2008 11:53 am

From the performance point of view, logging to a file is *much* (much!) faster than writing to a database. But, of course, it depends on the volume of incoming data. With rsyslog queued modes, you can also write massive amounts of messages into the database, even if you server is not fast enough to handle it ;)

Here are the details:

http://www.rsyslog.com/doc-rsyslog_high ... _rate.html

Rainer
PS: To remain honest, the server must be capable of handling the message volume at some time. ;) But it must not be capable to handle it immediately. Messages may be queued for some hours...
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Re: I have a lot of servers, is it better to use mysql logging?

Postby abefroman on Tue Jul 01, 2008 11:44 pm

So if processing power wasn't an issue, you'd say go with mysql?
abefroman
Advanced
 
Posts: 34
Joined: Thu Jun 05, 2008 6:14 pm

Re: I have a lot of servers, is it better to use mysql logging?

Postby rgerhards on Wed Jul 02, 2008 7:06 am

Yes - of course assuming, that you actually need the database functionality. But in general, if you can put things into a database, analysis is simpler.
User avatar
rgerhards
Site Admin
 
Posts: 1491
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron