# Sentry appender to elasticsearch log4j2 conf

**URL:** <https://discuss.elastic.co/t/sentry-appender-to-elasticsearch-log4j2-conf/222090>\
**Category:** Elasticsearch\
**Created:** [March 4, 2020, 1:45pm UTC](https://discuss.elastic.co/t/sentry-appender-to-elasticsearch-log4j2-conf/222090 "2020-03-04T13:45:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc3001](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Marc3001](https://discuss.elastic.co/u/Marc3001)\
**Post date:** [March 4, 2020, 1:45pm UTC](https://discuss.elastic.co/t/sentry-appender-to-elasticsearch-log4j2-conf/222090/1 "2020-03-04T13:45:58Z")

</div>

Hi people,

I'm trying to wire elasticsearch logging with sentry error management.  
Sentry is providing jar libs ([GitHub - getsentry/sentry-java: A Sentry SDK for Java, Android and other JVM languages.](https://github.com/getsentry/sentry-java)) which give new appender called sentry which will send events to sentry backend.

Note that I also created an issue on sentry side to clarify some of my questionning on the lib requirements and usage ([Implement sentry with elasticsearch 6.2 · Issue #827 · getsentry/sentry-java · GitHub](https://github.com/getsentry/sentry-java/issues/827)).

I just added libs in elasticsearch lib folder, and declared sentry appender and bind it to rootLogger as below

> appender.sentry.type = Sentry  
> appender.sentry.name = sentry  
> rootLogger.level = info  
> rootLogger.appenderRef.sentry.ref = sentry

If I let log level of rootLogger to info, I don't see any event sent to sentry and so I'm assuming no log is sent to sentry appender  
If I set log level of rootLogger to all, I can see some early stage ES boot logs like below but nothing after some seconds.  
If I set any level other than all on rootLogger I see nothing on sentry side and still assuming nothing is sent to appender.

Did anybody already successfully wire ES with sentry ?

Also I can see sentry has slf4j as a dependency and was wondering if I was missing something with confs and bindings between log4j2 and slf4j maybe...

---

<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 1, 2020, 1:46pm UTC](https://discuss.elastic.co/t/sentry-appender-to-elasticsearch-log4j2-conf/222090/2 "2020-04-01T13:46:03Z")

</div>

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