some messages are dropped when sending a from remote host

General discussions here

Moderator: rgerhards

some messages are dropped when sending a from remote host

Postby amitguz » Thu Jan 11, 2007 12:06 pm

while sending a bulk of messages from a remote host to syslog server a few messages are dropped.
Why does this happens? and can I eliminate it?
amitguz
New
 
Posts: 8
Joined: Thu Jan 11, 2007 8:50 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

RE: some messages are dropped when sending a from remote hos

Postby mmeckelein » Thu Jan 11, 2007 12:40 pm

Sounds like the nature of UDP. Use TCP instead.
mmeckelein
Adiscon Support
 
Posts: 176
Joined: Wed Mar 12, 2003 12:07 pm

Postby amitguz » Thu Jan 11, 2007 3:14 pm

After checking this issue, it is related to the receive buffer of the UDP socket, after increase the buffer size, indeed the number of drops decreased.
but I think that there is an elegant way to solve it, read the message from the socket buffer immediatliy and write it to a queue and in different thread read from the queue and parse the message, this way the socket buffer will not be filled out of space.
amitguz
New
 
Posts: 8
Joined: Thu Jan 11, 2007 8:50 am

Postby rgerhards » Thu Jan 11, 2007 3:19 pm

have you compiled with multi-threading?
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Postby amitguz » Thu Jan 11, 2007 3:30 pm

yes, my MakeFile has FEATURE_PTHREADS=1
amitguz
New
 
Posts: 8
Joined: Thu Jan 11, 2007 8:50 am

Postby rgerhards » Thu Jan 11, 2007 3:31 pm

ok, let me check...
User avatar
rgerhards
Site Admin
 
Posts: 2647
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