# How to connect elasticsearch and sentry

**URL:** <https://discuss.elastic.co/t/how-to-connect-elasticsearch-and-sentry/114637>\
**Category:** Elasticsearch\
**Created:** [January 9, 2018, 4:43am UTC](https://discuss.elastic.co/t/how-to-connect-elasticsearch-and-sentry/114637 "2018-01-09T04:43:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliceup](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@aliceup](https://discuss.elastic.co/u/aliceup)\
**Post date:** [January 9, 2018, 4:43am UTC](https://discuss.elastic.co/t/how-to-connect-elasticsearch-and-sentry/114637/1 "2018-01-09T04:43:56Z")

</div>

I am using getsentry/onpremise version 8.22.0.  
I used docker to install sentry on my local MacBook.  
And i installed elasticsearch by docker on my local MacBook too.  
Elasticsearch's image is [docker.elastic.co/elasticsearch/elasticsearch:5.4.1](http://docker.elastic.co/elasticsearch/elasticsearch:5.4.1).

I am using log4j2 to config elasticsearch logging.

Now, i want to connect elasticsearch to sentry, the thing i want to do is,  
When elasticsearch receive an error data, then automatically push this data to Sentry.

I do not know how to setting elasticsearch,  
Is there someone can tell me how to do this?

PS:  
I found something like [this](https://stackoverflow.com/questions/34894776/using-sentry-logging-with-elasticsearch)  
It seems too old.

---

<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 6, 2018, 4:43am UTC](https://discuss.elastic.co/t/how-to-connect-elasticsearch-and-sentry/114637/2 "2018-02-06T04:43:59Z")

</div>

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