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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...