Getting Data In

Disabling a single tcp/ip data input port breaks connections to other ports



Follow these steps to reproduce the problem:

1. Create two tcp data inputs. In my case I used ports 9850 and 9860

2. Send data continuously to port 9850. I happened to use a few lines of C# to accomplish this, but I've also reproduced the issue in other programming languages. My source is appended below. 

3. Disable port 9860 using the UI. Our connection to port 9850 is immediately closed and an exception is thrown. 


Does anyone know why this happens? I would have thought that only connections to port 9860, the port we are closing, would be disrupted. 




C# code to send data to tcp data input:

TcpClient client = new TcpClient("", 9850);
string message = "Test log event";
Byte[] data = System.Text.Encoding.ASCII.GetBytes(message);
NetworkStream stream = client.GetStream();

while (true)
stream.Write(data, 0, data.Length);

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...