# Backfill old data for integration in elastic-agent integration

**URL:** https://discuss.elastic.co/t/backfill-old-data-for-integration-in-elastic-agent-integration/340387
**Category:** Elastic Agent
**Created:** [August 8, 2023, 4:06pm UTC](https://discuss.elastic.co/t/backfill-old-data-for-integration-in-elastic-agent-integration/340387 "2023-08-08T16:06:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![liquidkite](https://avatars.discourse-cdn.com/v4/letter/l/df788c/32.png) [@liquidkite](https://discuss.elastic.co/u/liquidkite)
#### Post date: [August 8, 2023, 4:06pm UTC](https://discuss.elastic.co/t/backfill-old-data-for-integration-in-elastic-agent-integration/340387/1 "2023-08-08T16:06:51Z")

</div>

Hello all,  
I've been using elastic agent to fetch logs from a variety of data sources. We ran into an issue where there was a misconfiguration with the pipeline and that caused to drop logs for that timeframe. Once the issue wa fixed the logs are flowing but we are still missing data.

Is there a way to fetch the logs for the missing timeframe?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [August 8, 2023, 5:16pm UTC](https://discuss.elastic.co/t/backfill-old-data-for-integration-in-elastic-agent-integration/340387/2 "2023-08-08T17:16:13Z")

</div>

> [@liquidkite](#):
>
> Is there a way to fetch the logs for the missing timeframe?

I would say that it really depends on the integration and the input of each integration, but from my experience with Elastic Agent I would say that this is not something straight forward to do, or even possible in some cases.

For example, integrations that uses the `httpjson` input to get data from API endpoints will have a cursor with the latest data timestamp and you can't easily reset this cursor, basically you have to remove and add the integration again.

Another example are integrations that use TCP/UDP ports to receive data, like some network devices integrations, logs that are dropped will be lost.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 5, 2023, 5:17pm UTC](https://discuss.elastic.co/t/backfill-old-data-for-integration-in-elastic-agent-integration/340387/3 "2023-09-05T17:17:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
