title: How to resolve "Invalid Sequence Token" when using cloudwatch agent?
body: <p>I'm seeing the following warning in the <code> /var/log/amazon/amazon-cloudwatch-agent/amazon-cloudwatch-agent.log</code>:</p>
  <pre><code>2021-10-06T06:39:23Z W! [outputs.cloudwatchlogs] Invalid SequenceToken used, will use new token and retry: The given sequenceToken is invalid. The next expected sequenceToken is: 49619410836690261519535138406911035003981074860446093650
  </code></pre>
  <p>But there is no mention about which file is really the one that it's failing. Not even when I add  <code>&quot;debug&quot;: true</code> to the <code>/opt/aws/amazon-cloudwatch-agent/bin/config.json</code>.</p>
  <pre><code>cat /opt/aws/amazon-cloudwatch-agent/bin/config.json|jq .agent
  {
    &quot;metrics_collection_interval&quot;: 60,
    &quot;debug&quot;: true,
    &quot;run_as_user&quot;: &quot;root&quot;
  }
  </code></pre>
  <p>I have many (28) files in my <code>.logs.logs_collected.files.collect_list</code> section of the <code>config.json</code> file, so how can I find which file is exactly causing trouble?</p>