Configuring Splunk to receive StatsD metrics
Splunk can be used to receive StatsD metrics.
About this task
Run the following commands to configure Splunk to receive StatsD metrics.
Steps
-
Sign on to your Splunk dashboard at
http://your-splunk.example.com:8000
. -
Go to Settings> Data Inputs.
-
Under Local inputs, click UDP.
-
Click New Local UDP.
-
Enter the following information:
Port:
8125
-
Click Next.
-
Set
Source type
to Metrics> statsd. -
Create a new
metrics
index for the input. Make a note of the index name you choose. -
Set the
App Context
toPingDirectory App for Splunk
. -
Click Review.
-
Click Submit.
StatsD metrics are typically sent over UDP. Using UDP, the client sending metrics does not have to block as it would if using TCP. However, using TCP guarantees order and ensures no metrics are lost. To more securely send metrics to Splunk, you can first send your StatsD metrics to a Splunk Universal Forwarder, and have the forwarder communicate with Splunk over SSL