<commit_before>---
title: Troubleshooting
menu:
  telegraf_1_0:
    name: Troubleshooting Telegraf
    weight: 10
    parent: administration
---

This guide will show you how to catch Telegraf's output, submit sample metrics and watch how Telegraf formats and emits points to its output plugins.

### Capture output

A quick way to view Telegraf's output is to enable a UDP output plugin which will run in parallel with the existing output plugins. Since each output plugin creates its own output stream, the already existing outputs will not be affected. Traffic will be replicated to all the enabled outputs.

* NOTE: this approach requires Telegraf to be restarted which will cause a brief interruption to metrics collection

The minimal Telegraf configuration required to enable the Influx Line protocol UDP output is:

```
[[outputs.influxdb]]
  urls = ["udp://localhost:8089"] 
```

This setup utilizes the UDP format of the [InfluxDB output plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/influxdb).
You will need to append this to /etc/telegraf/telegraf.conf and then restart Telegraf for the change to take effect.

Then, you are ready to start listening on the configured port (8089 in this example) using a simple tool like netcat:

```
nc -lu 8089
```
<commit_msg>header updates<commit_after>---
title: Troubleshooting
menu:
  telegraf_1_0:
    name: Troubleshooting Telegraf
    weight: 10
    parent: administration
---

This guide will show you how to capture Telegraf's output, submit sample metrics and watch how Telegraf formats and emits points to its output plugins.

### Capture output

A quick way to view Telegraf's output is to enable a UDP output plugin which will run in parallel with the existing output plugins. Since each output plugin creates its own output stream, the already existing outputs will not be affected. Traffic will be replicated to all the enabled outputs.

* NOTE: this approach requires Telegraf to be restarted which will cause a brief interruption to metrics collection

The minimal Telegraf configuration required to enable the Influx Line protocol UDP output is:

```
[[outputs.influxdb]]
  urls = ["udp://localhost:8089"] 
```

This setup utilizes the UDP format of the [InfluxDB output plugin](https://github.com/influxdata/telegraf/tree/master/plugins/outputs/influxdb).
You will need to append this to /etc/telegraf/telegraf.conf and then restart Telegraf for the change to take effect.

Then, you are ready to start listening on the configured port (8089 in this example) using a simple tool like netcat:

```
nc -lu 8089
```

{'fraction_non_alphanumeric': 0.0620927558451514, 'fraction_numerical': 0.012265235722499043, 'mean_word_length': 4.4149377593361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4888715', 'n_tokens_mistral': 740, 'n_tokens_neox': 687, 'n_words': 353}