# Async n/w logging

**URL:** <https://www.ruby-forum.com/t/async-n-w-logging/204706>\
**Category:** NGINX\
**Created:** [March 19, 2011, 7:45am UTC](https://www.ruby-forum.com/t/async-n-w-logging/204706 "2011-03-19T07:45:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [March 19, 2011, 7:45am UTC](https://www.ruby-forum.com/t/async-n-w-logging/204706/1 "2011-03-19T07:45:18Z")

</div>

Is there some module that tries to log messages (access log) over the  
network by plugging into the core event loop?

I am use Boost.ASIO, GIO of glib etc. etc. but they all start their own  
event loop.

---

<div class="post-metadata">

**Author:** ![Arvind\_Jayaprakash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@Arvind\_Jayaprakash](https://www.ruby-forum.com/u/Arvind_Jayaprakash)\
**Post date:** [March 19, 2011, 4:43pm UTC](https://www.ruby-forum.com/t/async-n-w-logging/204706/2 "2011-03-19T16:43:20Z")

</div>

Compile your nginx with syslog support:  
[http://www.joeandmotorboat.com/2009/09/08/compiling-nginx-with-syslog-support/](http://www.joeandmotorboat.com/2009/09/08/compiling-nginx-with-syslog-support/)

Use syslog-ng feature to send packets to loghost.

Regards,  
Vitaly T.

---

<div class="post-metadata">

**Author:** ![Arvind\_Jayaprakash](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/fbc32d/32.png) [@Arvind\_Jayaprakash](https://www.ruby-forum.com/u/Arvind_Jayaprakash)\
**Post date:** [May 15, 2011, 10:45pm UTC](https://www.ruby-forum.com/t/async-n-w-logging/204706/3 "2011-05-15T22:45:37Z")

</div>

Hello VT,

i am using ubutu 10.4 Lucid and running nginx 0.8.54. I tried patching  
nginx but it fails. see below. I am trying to use syslog-ng to  
centralize all the logs to one server. I have had no luck so far. I  
have tried the patches mentioned here  
[NGINX 3rd Party Modules | NGINX](http://wiki.nginx.org/Nginx3rdPartyModules) but no luck so far, they all  
error out. would you have any idea, or point o to a right direction.  
Thank you!

root@nginx-syslog-test:~/nginx-0.8.54# patch -p1 \< syslog.patch  
patching file auto/make  
patching file auto/options  
Hunk #1 succeeded at 118 (offset 8 lines).  
Hunk #2 succeeded at 272 (offset 18 lines).  
Hunk #3 succeeded at 414 (offset 29 lines).  
Hunk #4 succeeded at 433 (offset 32 lines).  
patching file auto/summary  
Hunk #1 succeeded at 73 with fuzz 1 (offset 2 lines).  
patching file src/core/nginx.c  
Hunk #2 succeeded at 283 (offset 9 lines).  
Hunk #3 succeeded at 409 (offset 19 lines).  
patching file src/core/ngx\_conf\_file.c  
Hunk #1 succeeded at 907 with fuzz 1.  
patching file src/core/ngx\_log.c  
Hunk #4 FAILED at 447.  
1 out of 4 hunks FAILED – saving rejects to file  
src/core/ngx\_log.c.rej  
patching file src/http/modules/ngx\_http\_log\_module.c  
Hunk #4 succeeded at 835 (offset 18 lines).  
Hunk #5 succeeded at 904 (offset 24 lines).

Posted at Nginx Forum:

> **[Re: async n/w logging](https://forum.nginx.org/read.php?2,183884,198306#msg-198306)**
>
> Is there some module that tries to log messages (access log) over the network by plugging into the core event loop? I am use Boost.ASIO, GIO of glib etc. etc. but they all start their own event loop. \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_...
