How to specify timestamp from telegraf to influx

  • hello,i am using telegraf’s plugin tail to tail a log with json data to influxdb, however,i don’t now how to specify timestamp which can be catched from the log, how should i do?

data format:


  • TickerTime item is correspond to the timestamp which i want to specify.

Unfortunately this is not something that Telegraf supports at this time with the JSON input format. There is an issue open for this though.


thanks for your quickly reply

Is it possible to achieve the same using line protocol?

Yes, when using line protocol with data_format = "influx" the timestamp, if specified, will be used.

1 Like

Thanks. It worked and it has improved the write speed compare to json formal.