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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...