Refine your search:

0
1

All, I'm going to configure Splunk to receive Syslog messages and have not yet decided which transport protocol I will be using.

I'm thinking of just sticking with UDP devices some of my devices may only be able to send messages using UDP.

Besides the normal preferences for TCP over UDP, why is it strongly recommended to configure Splunk to receive Syslog messages via TCP instead of UDP?

Stephanie

asked 27 May '10, 16:56

scornish's gravatar image

scornish
31223
accept rate: 0%


4 Answers:

You can setup both at the same time. You may also want to consider setting up syslog-ng in front of splunk due to splunk downtime and disk persistence issues. See the following splunk blog for some additional info:

link

answered 27 May '10, 17:08

Lowell's gravatar image

Lowell ♦
11.2k91291
accept rate: 41%

The recommendation partially stems from the protocol itself. UDP does not provide guarantee of delivery which can cause data to go missing. Specific to Splunk, the tcp connection will log additional metrics (like source host) within Splunk. When considering connection problems or missing data, the TCP connection is much more desirable.

link

answered 27 May '10, 18:33

Simeon's gravatar image

Simeon ♦
4.2k111035
accept rate: 26%

It is not strongly recommended from Splunk to favor TCP over UDP in general. This will be dictated by your own requirements. In cases where delivery of log messages needs to be guaranteed, you will have to use TCP. Similarly, if you need to encrypt the data connection, you should use TCP. However, if (for example) your application logs directly over TCP and the local queue fills up, then your application will block or have to wait to write its own log messages. In many cases, this will be be unacceptable as it will probably cause severe application performance degradation. In such cases, UDP will be preferred.

link

answered 27 May '10, 23:57

gkanapathy's gravatar image

gkanapathy ♦
32.6k4827
accept rate: 41%

I would argue that the preference for TCP is because UDP syslog messages are truncated at around 1K bytes. So if you intend to have long messages coming in via syslog you should chose TCP.

link

answered 25 Jan, 08:58

krugger's gravatar image

krugger
29215
accept rate: 19%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×285

Asked: 27 May '10, 16:56

Seen: 7,349 times

Last updated: 25 Jan, 08:58

Copyright © 2005-2012 Splunk Inc. All rights reserved.