I am doing the same thing . so you need to define it in line protocol, e.g test1,tag1=value1 value=1
On Wed, Feb 15, 2017 at 4:39 PM, Mark Rushakoff <m...@influxdb.com> wrote: > It looks like the entire line emitted is: > > C:\Windows\system32>echo mytest value=1 > > That isn't valid line protocol, so that's why you're seeing the parse > error. You want it to be only > > mytest value=1 > > But I don't know enough about Windows to say what you can change to omit > the path piece. > > On Wed, Feb 15, 2017 at 4:07 PM, <digivalu...@gmail.com> wrote: > >> Hi, >> >> We try to use a custom made script for telegraf on a Windows 10 host. >> >> The executable is C:\Program Files\telegraf\telegraf.exe >> >> >> >> The configuration file is C:\Program Files\telegraf\telegraf.conf >> >> (...begining of file not displayed...) >> >> [[inputs.exec]] >> commands = ["C:/test.bat"] >> timeout = "5s" >> name_suffix = "_mycollector" >> data_format = "influx" >> We just removed every other [[inputs.xxx]], and specified the server >> address and database name. >> >> >> C:\test.bat >> echo mytest value=1 >> >> >> But this only lead to an error in C:\Program Files\telegraf\telegraf.log >> 2017-02-15T23:49:40Z E! ERROR in input [inputs.exec]: Errors encountered: >> [ metric parsing error, reason: [invalid field format], buffer: [C:\ >> Windows\system32>echo mytest value=1 ], index: [29]] >> >> >> A very similar setup works fine on Linux. >> What do we do wrongly? >> >> >> >> -- >> Remember to include the version number! >> --- >> You received this message because you are subscribed to the Google Groups >> "InfluxData" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to influxdb+unsubscr...@googlegroups.com. >> To post to this group, send email to influxdb@googlegroups.com. >> Visit this group at https://groups.google.com/group/influxdb. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/influxdb/ec431971-5dbf-4078-b7d9-3c358ea5ff5c%40googlegroups.com >> <https://groups.google.com/d/msgid/influxdb/ec431971-5dbf-4078-b7d9-3c358ea5ff5c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Remember to include the version number! > --- > You received this message because you are subscribed to the Google Groups > "InfluxData" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to influxdb+unsubscr...@googlegroups.com. > To post to this group, send email to influxdb@googlegroups.com. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/CALxJwdPiLu6Hwury1pjJy5g7kK4tvfNPvwu7BTrfZ3v%2B18Z50w% > 40mail.gmail.com > <https://groups.google.com/d/msgid/influxdb/CALxJwdPiLu6Hwury1pjJy5g7kK4tvfNPvwu7BTrfZ3v%2B18Z50w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CA%2BB14t2H8d2Ze63GogtsDx_A2Wmks3HxcQJMmfAjKo44huYsDQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.