Deployment Architecture

Publishing data from my localhost to UDP port

juhisaxena28
Explorer

I have opened a UDP port in splunk system and we have configured an index with it. How can i check if the UDP port is available to ingest/parse data in splunk. I need to test it via localhost.

Tags (3)
0 Karma

jnudell_2
Builder

Hi @juhisaxena28 ,

If you have access to the CLI on Linux, you can check if the port is listening using the following command:
netstat -lvn | grep ^udp | grep <your port number>

You can send test data to the port using the following command (let's say the UDP port is 5151:

echo $(date +"%F %T") - INFO - TESTING UDP INPUT > /dev/udp/localhost/5151
OR
echo $(date +"%F %T") - INFO - TESTING UDP INPUT > /dev/udp/127.0.0.1/5151

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...