Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2013, 12:58 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 5

Rep: Reputation: Disabled
losing netconsole udp packets

I am using linux 2.6.38 netconsole to forward kernel log messages to a second host. On the second host I have syslog-ng 2.0.9 running. I see that not all messages get to the second host. For example "echo 1 > /dev/kmsg; echo 2 > /dev/kmsg" on the first machine results in only the first message reliably arriving at the second host; message 2 is often, but not always, missing. The relevant portion of the syslog config file looks like:

> source src {
> internal();
> udp(ip("") port(6666));
> };

I see the same losses when running netcat (v1.10) on the second host. I know udp is not reliable, but as syslog uses udp extensively I would not have expected these kinds of losses. My systems are not stressed at all during these tests.

Are there any syslog config options that can minimize these losses? Any other possibilities to investigate?
Old 02-22-2013, 02:29 PM   #2
LQ Newbie
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I will try tcpdump to see what packets do/do not arrive at the interface on the second host.
Old 02-25-2013, 02:03 PM   #3
LQ Newbie
Registered: Apr 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
tcpdump shows expected packets arriving at second host's interface. And no packets dropped; no overruns. So where are they going?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Configure Netconsole Kernel Module To Log Messages Over UDP Network LXer Syndicated Linux News 0 07-03-2008 01:50 PM
UDP: Short Packets: and UDP bad checksum: entries in dmesg minutes2memories Linux - Networking 2 02-26-2006 08:28 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 03:53 PM
How to receive UDP and ICMP packets, by one UDP socket(PMTUD) myself_rajat Linux - Networking 0 05-28-2004 06:43 AM
UDP packets going nowhere jylhar Programming 0 01-05-2004 06:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration