0

Using Log parser input plugin, writing custom logs to influxdb. Input plugin logparser giving error: Error parsing log line:

filename.log: must have one or more fields.

This is running telegraf version 1.5.3 and is failing with above error. I expect telegraf logs to be fine and dump data to influx.

Steephen
  • 14,645
  • 7
  • 40
  • 47
Vinayak Mishra
  • 341
  • 4
  • 11

1 Answers1

0

In influxdb, every point(record) is a group of tags and fields. Time is one of the default tags. But you should provide at least one field as part of a point. Your error hints the paoint, that you are trying insert does not have any fields.

Steephen
  • 14,645
  • 7
  • 40
  • 47
  • Do I need to add an hint for field. I have added hint for tag but I did not find any hint for field in the documentation. My row doesn't has a timestamp. I am using influx's insert timestamp. – Vinayak Mishra Oct 22 '19 at 13:49