[syslog-ng] Syslog file to Mysql

Dukes Clayton Clayton.Dukes at HCAhealthcare.com
Tue Apr 25 20:16:32 CEST 2006


Just use perl...

Take a look at my php-syslog-ng package, there's a script in
scripts/dbgen.pl that you could probably start with.
My package is available at http://phlog.gdd.net


-----Original Message-----
From: syslog-ng-bounces at lists.balabit.hu
[mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Nick
Sent: Tuesday, April 25, 2006 9:39 AM
To: Syslog-ng users' and developers' mailing list
Subject: Re: [syslog-ng] Syslog file to Mysql

I am currently using the php-syslog-ng but am in need to find a way to
take a local file and "inject" it into the local database.  If
php-syslog-ng can do this I have missed it and would be appreciative if
you could point that out to me.

THanks for the help

On 4/25/06, Dukes Clayton <Clayton.Dukes at hcahealthcare.com> wrote:
> Take a look at php-syslog-ng
>
>
> -----Original Message-----
> From: syslog-ng-bounces at lists.balabit.hu
> [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Nick 
> Carstensen
> Sent: Monday, April 24, 2006 9:52 PM
> To: syslog-ng at lists.balabit.hu
> Subject: [syslog-ng] Syslog file to Mysql
>
> Hello All,
>
> Have a question I hope someone can help with.
>
> Currently I have Syslog-ng running logging to a mysql db along with 
> keeping files.  This is working well.  I have a situation where I can 
> not log to the box directly.  I need to "pull" the logs to the central

> log server and import them into the db.  As syslogd and syslog-ng do 
> not log all the needed fields by default like facility:level and year,

> when they are writing them local I need a way to add that to the file.
>
> The second problems is how to import them to the db.  Is there any 
> tool that will do this for me automatically?
>
> Thanks for the assistance.
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu 
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu 
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
>
>
_______________________________________________
syslog-ng maillist  -  syslog-ng at lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html



More information about the syslog-ng mailing list