# Could not load template: couldn't load template: couldn't load json. Error: 400 Bad Request

**URL:** https://discuss.elastic.co/t/could-not-load-template-couldnt-load-template-couldnt-load-json-error-400-bad-request/215961
**Category:** Beats
**Created:** [January 21, 2020, 10:27pm UTC](https://discuss.elastic.co/t/could-not-load-template-couldnt-load-template-couldnt-load-json-error-400-bad-request/215961 "2020-01-21T22:27:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bjen\_Shah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bjen_shah/32/46250_2.png) [@Bjen\_Shah](https://discuss.elastic.co/u/Bjen_Shah)
#### Post date: [January 21, 2020, 10:27pm UTC](https://discuss.elastic.co/t/could-not-load-template-couldnt-load-template-couldnt-load-json-error-400-bad-request/215961/1 "2020-01-21T22:27:41Z")

</div>

2020-01-17T09:49:26-06:00 INFO Connected to Elasticsearch version 7.5.0 2020-01-17T09:49:26-06:00 INFO Trying to load template for client: [http://0.0.0.0:9200](http://0.0.0.0:9200) 2020-01-17T09:49:26-06:00 ERR Connecting error publishing events (retrying): Connection marked as failed because the onConnect callback failed: Could not load template: couldn't load template: couldn't load json. Error: 400 Bad Request  
I know it seems old template;  
I have updated from _default_ to \_doc still I get errors, can I get a few suggestion to make compatible with new version 7.5.x. Please.  
When I have used this following templates :

> <https://github.com/hartfordfive/cloudflarebeat/blob/master/cloudflarebeat.template.json>

---

<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: [February 18, 2020, 10:27pm UTC](https://discuss.elastic.co/t/could-not-load-template-couldnt-load-template-couldnt-load-json-error-400-bad-request/215961/2 "2020-02-18T22:27:52Z")

</div>

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