Getting Data In

TCP data input

athannie92
New Member

Hey I am trying to put data into my splunk using the TCP option and splunk is asking for my tcp port but I dont know what port to use. What should I put? Thank you

Tags (1)
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi athannie92,

are your talking about recieving Splunk TCP inputs from universal forwarders? If so the default port will be 9997.

If you want Splunk to receive general TCP traffic as data input, you can set any free TCP port. There are some things to remember, if you run Splunk as non-root this port must be higher than 1024 and it must not be take by any other running process. Also check for any local firewall on your server which could block your port.

Ask your System Admin for help on getting a free port and local firewall.

hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...