darron / goshe

Sends metrics to Datadog for items that don't have agent integrations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tail to the end of the file when --skip is true.

darron opened this issue · comments

tail is designed to:

  1. Monitor a file.
  2. Send a metric if something new is added and it matches.

See the --skip option - which is true by default.

From the first commit - it will read the whole file from the beginning and will match on ANYTHING throughout the whole file - it will not --skip.

Need to add that functionality so that it just matches new things that are added.

I need to use Config.Location which uses a SeekInfo struct.