# Cloudflare integration not working

**URL:** <https://discuss.elastic.co/t/cloudflare-integration-not-working/312631>\
**Category:** Elastic Agent\
**Tags:** integrations\
**Created:** [August 22, 2022, 2:17pm UTC](https://discuss.elastic.co/t/cloudflare-integration-not-working/312631 "2022-08-22T14:17:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guncixx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guncixx/32/87751_2.png) [@Guncixx](https://discuss.elastic.co/u/Guncixx)\
**Post date:** [August 22, 2022, 2:17pm UTC](https://discuss.elastic.co/t/cloudflare-integration-not-working/312631/1 "2022-08-22T14:17:51Z")

</div>

I have set up cloudflare integration already some time time ago, at first it was working without any issue but after recent version updates it's not getting either audit or logpull logs. I have configured everything according to the documentation and after I save integration configuration agent is reporting some errors -

```auto
message: "Error while processing http request: failed to execute rf.collectResponse: failed to execute http client.Do: server responded with status code 400: bad query: error parsing time: invalid time range: too early: logs older than 168h0m0s are not available
"

```

```auto
message: "error processing response: template: :1:28: executing "" at <.last_response.body.response>: map has no entry for key "response""

```

If I try getting logs manually, using API request, everything works so I suspect problem is somewhere in integrations API side.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [September 6, 2022, 2:00am UTC](https://discuss.elastic.co/t/cloudflare-integration-not-working/312631/2 "2022-09-06T02:00:39Z")

</div>

What is ur config??

---

<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:** [October 4, 2022, 2:01am UTC](https://discuss.elastic.co/t/cloudflare-integration-not-working/312631/3 "2022-10-04T02:01:05Z")

</div>

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