Welcome! Log In Create A New Profile

Advanced

Re: Logging to DB

Anton Yuzhaninov
June 07, 2011 07:22AM
On 06/07/11 01:17, John Macleod wrote:
> Is there any tried and tested way to log to a database?
>
> There appears to be several options using fifo, syslog, etc floating
> around, however, there seems to be some issues with certain options.

how to do this depend on acceptable delay.

If you need nearly real time info in DB:
tail -F /var/log/access.log | /path/to/writer_logs_to_db

If several minutes lag is acceptable, you can rotate logs and then load full log
in single transaction.

--
Anton Yuzhaninov

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Logging to DB

John Macleod June 06, 2011 05:18PM

Re: Logging to DB

Anton Yuzhaninov June 07, 2011 07:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready