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!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...