As we mentioned, Splunk will need to listen for StatsD (metrics) data on an open port. To do this, you need to set up a data input:
- On the Splunk main page, go to Settings and then Data inputs.
- Under Local inputs, click on Add new next to UDP or TCP (depending on the type of input you want to create).
- For Port, enter the number of the port you are using for StatsD.
- Click Next | Select Source Type.
- Select Metrics | statsd.
- For Index, select the metrics index you set up in the previous section.
- Finally, click on Review, then click on Submit.
That's all there is to it!