Telegraf not processing output after configuring telegraf

I am configuring telegraf to process some inputs from a file and no output is processed this is also a json file which i think is the issue and the formating of the json file

I am sending the input file , the telegraf and the directory of the output file

input file

more gnmic-new2
{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762850612366988000,
  "time": "2025-11-11T09:43:32.366988+01:00",
  "updates": [
    {
      "Path": "interfaces/interface[name=GigabitEthernet0/0]/state/counters/out-
octets",
      "values": {
        "interfaces/interface/state/counters/out-octets": "288737070"
      }
    }
  ]
}
{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762850612370800000,
  "time": "2025-11-11T09:43:32.3708+01:00"
}
{
  "sync-response": true
}
{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762850622357204000,
  "time": "2025-11-11T09:43:42.357204+01:00",
  "updates": [
    {
      "Path": "interfaces/interface[name=GigabitEthernet0/0]/state/counters/out-
octets",
      "values": {
        "interfaces/interface/state/counters/out-octets": "288738953"
      }
    }
  ]
}
{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762850632361644000,
  "time": "2025-11-11T09:43:52.361644+01:00",
  "updates": [
    {
--More--(2%)

the telegraf config

# Global Agent Configuration
[agent]
  hostname = ""
  flush_interval = "15s"
  interval = "1500s"
  metric_batch_size  = 1000
  metric_buffer_limit = 10000
  omit_hostname = false

# gRPC Dial-Out Telemetry Listener
[[inputs.file]]
  files = ["/mnt/nfs_share/gnmic-new2"]
  data_format = "json_v2"
#  json_timestamp_units  = "1ns"

[[inputs.file.json_v2]]
  measurement_name = "interface_counters"
  timestamp_path = "timestamp"
  timestamp_format = "unix_ns"

  [[inputs.file.json_v2.tag]]
    path = "source"

  [[inputs.file.json_v2.tag]]
    path = "subscription-name"
    rename = "subscription_name"

  [[inputs.file.json_v2.object]]
    path = "updates"
    tags = ["Path"]


# Output Plugin
#[[outputs.socket_writer]]
#  address = "tcp://10.200.10.2:5055"
#  data_format = "json"
#  json_timestamp_units = "1ns"



[[outputs.file]]
  files = ["/tmp/gnmic-newone"]
  data_format = ["json_v2"]

i do run this command

telegraf --config /etc/telegraf/telegraf-grpc31.conf --test | more

{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762851662457960000,
  "time": "2025-11-11T10:01:02.45796+01:00",
  "updates": [
    {
      "Path": "interfaces/interface[name=GigabitEthernet0/0]/state/counters/out-octets",
      "values": {
        "interfaces/interface/state/counters/out-octets": "288797586"
      }
    }
  ]
}
{
  "source": "10.200.10.1:57500",
  "subscription-name": "default-1762852915",
  "timestamp": 1762851672449071000,
  "time": "2025-11-11T10:01:12.449071+01:00",
  "updates": [
    {
      "Path": "interfaces/interface[name=GigabitEthernet0/0]/state/counters/out-octets",
      "values": {
        "interfaces/interface/state/counters/out-octets": "288797870"
      }
    }
  ]
}
2025-11-12T10:16:18Z E! [telegraf] Error running agent: input plugins recorded 1 errors
oo

and ran this command too

 telegraf --config /etc/telegraf/telegraf-grpc31.conf --debug
2025-11-12T13:47:27Z I! Loading config: /etc/telegraf/telegraf-grpc31.conf
2025-11-12T13:47:27Z I! Starting Telegraf 1.30.0 brought to you by InfluxData the makers of InfluxDB
2025-11-12T13:47:27Z I! Available plugins: 233 inputs, 9 aggregators, 31 processors, 24 parsers, 60 outputs, 6 secret-stores
2025-11-12T13:47:27Z I! Loaded inputs: file
2025-11-12T13:47:27Z I! Loaded aggregators:
2025-11-12T13:47:27Z I! Loaded processors:
2025-11-12T13:47:27Z I! Loaded secretstores:
2025-11-12T13:47:27Z I! Loaded outputs: file
2025-11-12T13:47:27Z I! Tags enabled: host=ibcinsmartsd2v
2025-11-12T13:47:27Z I! [agent] Config: Interval:25m0s, Quiet:false, Hostname:"ibcinsmartsd2v", Flush Interval:15s
2025-11-12T13:47:27Z D! [agent] Initializing plugins
2025-11-12T13:47:27Z D! [agent] Connecting outputs
2025-11-12T13:47:27Z D! [agent] Attempting connection to [outputs.file]
2025-11-12T13:47:27Z D! [agent] Successfully connected to outputs.file
2025-11-12T13:47:27Z D! [agent] Starting service inputs
2025-11-12T13:47:42Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:47:57Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:48:12Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:48:27Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:48:42Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:48:57Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:49:12Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:49:27Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:49:42Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:49:57Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:50:12Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics
2025-11-12T13:50:27Z D! [outputs.file] Buffer fullness: 0 / 10000 metrics


it is displaying it as an output on screen and not sure why

# ls -al | grep newone
-rw-r--r--   1 root    root       0 Nov 11 16:08 gnmic-newone

The main purpose of the telegraf config is to write to a file in /tmp/gnmic-newone which it is not doing

Try:

files = [“stdout”, “/tmp/gnmic-newone.out”]

thanks

but still giving the same message with no output