If you are using from_beginning = true
you will probably want to disable it, this way Telegraf will pick up from the end of the logfile when restarted. It isn’t currently possible to store the offsets when restarting, though it is something we would like to add, but you can often avoid restarting Telegraf by using SIGHUP to reload which does keep track of the offsets.