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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...