# Cannot index event publisher.Event (elasticsearch/client.go:502)

**URL:** <https://discuss.elastic.co/t/cannot-index-event-publisher-event-elasticsearch-client-go-502/127502>\
**Category:** APM\
**Created:** [April 10, 2018, 2:23pm UTC](https://discuss.elastic.co/t/cannot-index-event-publisher-event-elasticsearch-client-go-502/127502 "2018-04-10T14:23:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![roncohen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roncohen/32/22881_2.png) [@roncohen](https://discuss.elastic.co/u/roncohen)\
**Post date:** [April 10, 2018, 2:55pm UTC](https://discuss.elastic.co/t/cannot-index-event-publisher-event-elasticsearch-client-go-502/127502/2 "2018-04-10T14:55:24Z")

</div>

Hi!

This looks like a problem with your Elasticsearch setup.  
Try the solution posted here: [FORBIDDEN/12/index read-only / allow delete (api)]](https://discuss.elastic.co/t/forbidden-12-index-read-only-allow-delete-api/110282/5?u=roncohen)

Does that help?

/Ron

---

_[View the full topic](https://discuss.elastic.co/t/cannot-index-event-publisher-event-elasticsearch-client-go-502/127502)._
