Getting Data In

ERROR TcpInputProc - Received unrecognized signature POST / HTTP/1.1

natalija
New Member

Hi,
I configured Splunk to receive tcp request on port 9000. I configured as well props.conf to parse xml file:

[wsdmxml]

KV_MODE = xml

LINE_BREAKER = ([\r\n]+)(?=####<)

SHOULD_LINEMERGE = false

BREAK_ONLY_BEFORE = ^<wsnt:Message\s+\w+

MUST_BREAK_AFTER = wsnt:Message>

TRUNCATE = 9999999

LINE_BREAKER_LOOKBEHIND = 10000

MAX_EVENTS = 1000000

and inputs.conf

[tcp://:9000]

disabled = 0

connection_host = ip

sourcetype = wsdmxml

source = tcp:9000

but I'm still receiving TcpInputProc - Received unrecognized signature POST / HTTP/1.1 error.

<soap:Envelope xmlns:mows="http://docs.oasis-open.org/wsdm/mows-2.xsd" xmlns:mowse="http://docs.oasis-open.org/wsdm/mowse-2.xml" xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" xmlns:muws2="http://docs.oasis-open.org/ws▒▒▒
11-15-2012 15:08:29.534 -0800 ERROR TcpInputProc - Received unrecognized signature POST / HTTP/1.1
SOAPAction:
Content-Type: text/xml; charset=utf-8
Content-Length: 5860
Host: splunkserver:9000

My server is set up to forward the request to http://splunkserver:9000.
What I'm doing wrong?

Tags (1)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Two problems. First, you have set up a Splunk TCP listening port, which only accepts connections and data directly from a Splunk Forwarder. Second, even if you use a standard TCP listening port, I suspect you don't really want the exact contents of a POST request, but only the (decoded) payload. The TCP listen ports are not HTTP server ports, so you will receive all headers and other content, and if your SOAP request is expecting any kind of response or connection close, it is not going to get it.

gkanapathy
Splunk Employee
Splunk Employee

You need to write your own code to do this, using either modular inputs, or by sending to one of the REST API endpoints. You can find out more about this at http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/ModInputsIntro and http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTinput#receivers.2Fsimple and http://dev.splunk.com/

0 Karma

natalija
New Member

Is there a way to user REST API to retrieve data from HTTP request into Splunk? What is the proper way to get data over HTTP and how to configure input.conf in that case? I tried to send my data to 'https://splunkserver.l7tech.com:8089/services/receivers/simple?host=XX.X.XX.XXX&index=main&source=ww...', where I set www as a source in input.cong, but I didn't get anything in Splunk.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...

Best Practices: Splunk auto adjust pipeline queue

When you enable autoAdjustQueue in Splunk, maxSize should be understood as the queue size Splunk starts with ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...