Getting Data In

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

John235711
Engager

Hi, 

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. 

Thanks,

John

 

C# code to send data to tcp data input:

TcpClient client = new TcpClient("172.30.40.126", 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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...