# Synthetic Logs

**URL:** <https://discuss.elastic.co/t/synthetic-logs/328598>\
**Category:** Synthetics\
**Created:** [March 27, 2023, 9:47am UTC](https://discuss.elastic.co/t/synthetic-logs/328598 "2023-03-27T09:47:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [March 27, 2023, 9:47am UTC](https://discuss.elastic.co/t/synthetic-logs/328598/1 "2023-03-27T09:47:04Z")

</div>

Hello,

I noticed from my synthetic logs about this 403 error.

How do I authorized the API key id?

```auto
{"log.level":"warn","@timestamp":"2023-03-24T09:08:57.835Z","message":"could not load last externally recorded state, will retry again in 1179 milliseconds: %!w(*fmt.wrapError=&{error executing state search for 23db164d-5615-45b2-86f5-44de2203da3a: 403 Forbidden: {\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"action [indices:data/read/search] is unauthorized for API key id [VVDbEocB92SP045N20T3] of user [elastic/fleet-server], this action is granted by the index privileges [read,all]\"}],\"type\":\"security_exception\",\"reason\":\"action [indices:data/read/search] is unauthorized for API key id [VVDbEocB92SP045N20T3] of user [elastic/fleet-server], this action is granted by the index privileges [read,all]\"},\"status\":403} 0xc000cd41f0})","component":{"binary":"heartbeat","dataset":"elastic_agent.heartbeat","id":"synthetics/browser-default","type":"synthetics/browser"},"log":{"source":"synthetics/browser-default"},"log.origin":{"file.line":91,"file.name":"monitorstate/tracker.go"},"service.name":"heartbeat","ecs.version":"1.6.0","ecs.version":"1.6.0"}

```

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [March 27, 2023, 3:54pm UTC](https://discuss.elastic.co/t/synthetic-logs/328598/2 "2023-03-27T15:54:17Z")

</div>

Hello @aisyaharifin ,

You can try disabling/enabling monitor management. that will recreate the API key for you.

Regards

---

<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:** [April 20, 2023, 3:55pm UTC](https://discuss.elastic.co/t/synthetic-logs/328598/3 "2023-04-20T15:55:11Z")

</div>

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