Creating a UDP or TCP data input

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:

  1. On the Splunk main page, go to Settings and then Data inputs.
  2. Under Local inputs, click on Add new next to UDP or TCP (depending on the type of input you want to create).
  3. For Port, enter the number of the port you are using for StatsD.
  4. Click Next | Select Source Type.
  5. Select Metrics | statsd.
  6. For Index, select the metrics index you set up in the previous section.
  7. Finally, click on Review, then click on Submit.

That's all there is to it!

Get Implementing Splunk 7 - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.