Hi,
Am collecting some data via perl script from a cisco router. When I tried to run this perl directly am getting my output but when i try to run via telegraf am getting error. The issue is i believe with writing data or data format. Am not sure how to write my output to influx exactly. If any have any idea please suggest. Please see below screen shots
direct perl out put:
from telegraf:
root@danish-PowerEdge-1950:/etc/telegraf/telegraf.d# telegraf --test --config DMVPN.conf
2021-02-23T12:42:05Z I! Starting Telegraf 1.15.3
2021-02-23T12:42:05Z E! [inputs.exec] Error in plugin: metric parse error: expected field at 1:10: “TUNNEL IP, SIM IP”
2021-02-23T12:42:05Z E! [telegraf] Error running agent: input plugins recorded 1 errors
root@danish-PowerEdge-1950:/etc/telegraf/telegraf.d#
The problem is that the output from your Perl script does not conform to the influx line protocol (which you set with the data_format = "influx" in the config file).
The format of the influx line protocol is described here:
There would also be other input formats that Telegraf accepts as input format by default.
All currently possible input formats can be found here:
i tired different data formats, but nothing is working, can you please suggest what format can i use or what changes in plerl script need to be changed inorder to take influx data format?
I managed to write it to influx via telegraf but result was not as I expected. Am getting only one timestamp for all the entries. Is it possible to time stamp for all my entries ?