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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...