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!

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...

Hunt Smarter, Not Harder: Discover New SPL “Recipes” in Our Threat Hunting Webinar

Are you ready to take your threat hunting skills to the next level? As Splunk community members, you know the ...