# Help with Telegraf's exec input

**URL:** https://community.influxdata.com/t/help-with-telegrafs-exec-input/37728
**Category:** Telegraf
**Tags:** exec
**Created:** [September 26, 2024, 10:35pm UTC](https://community.influxdata.com/t/help-with-telegrafs-exec-input/37728 "2024-09-26T22:35:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![malcolm1308](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@malcolm1308](https://community.influxdata.com/u/malcolm1308)
#### Post date: [September 26, 2024, 10:35pm UTC](https://community.influxdata.com/t/help-with-telegrafs-exec-input/37728/1 "2024-09-26T22:35:13Z")

</div>

I am trying to ingest the result the “pveversion” command with the input.exec plugin, which should return something like “pve-manager/8.2.7/3e0176e6bb2ade3b (running kernel: 6.8.12-2-pve)”. But my telegraf config running fine and passes “telegraf -config telegraf.conf --test”, but nothing shows up in my influxDB. Any help is appreciated!

 ![Screenshot from 2024-09-26 18-18-01](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/3X/5/5/55a09f7045ba64a500e31834598a3dac929b6e8b.png)

```auto
global_tags]
  Production_System = "True"

# Configuration for telegraf agent
[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "0s"
  precision = "0s"

  hostname = ""
  omit_hostname = false

###############################################################################
# SECRETSTORE PLUGINS #
###############################################################################

###############################################################################
# OUTPUT PLUGINS #
###############################################################################

# # Configuration for sending metrics to InfluxDB 2.0
 [[outputs.influxdb_v2]]
     urls = ["http://192.168.20.86:8086"]
     token = "###########################################################"
     organization = "proxmox"
     bucket = "test"

###############################################################################
# PROCESSOR PLUGINS #
###############################################################################

###############################################################################
# AGGREGATOR PLUGINS #
###############################################################################

###############################################################################
# INPUT PLUGINS #
###############################################################################

# # Read metrics from one or more commands that can output to stdout
 [[inputs.exec]]
# ## Commands array
   commands = ["/usr/bin/pveversion"]
   timeout = "5s"
   data_format = "grok"

```

---

<div class="post-metadata">

### Author: ![srebhan](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/srebhan/32/8572_2.png) [@srebhan](https://community.influxdata.com/u/srebhan)
#### Post date: [October 2, 2024, 8:49am UTC](https://community.influxdata.com/t/help-with-telegrafs-exec-input/37728/2 "2024-10-02T08:49:32Z")

</div>

@malcolm1308 your configuration is missing any GROK pattern to use for parsing the output! Please check the [parser documentation](https://github.com/influxdata/telegraf/tree/master/plugins/parsers/grok), especially the `grok_patterns` option!
