Closed bloodmc closed 4 months ago
Restart the agent and it resends the same log data.
Because you told it to ;)
from_beginning = true
This means to read from the beginning of a file you defined. Please also look at the statefile agent option, which can save the state of certain plugins, like tail, so that when you restart, after a successful shutdown, Telegraf is able to pick back up where it left off.
Ah missed that. Thanks!
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.30.1, Windows Server 2022 Standard and pushing logs to loki
Docker
Manual setup. (No docker used)
Steps to reproduce
Expected behavior
For restarts to not resend the same log data
Actual behavior
Restarting the agent resends the same log data.
Additional info
No response