# Using logback within Sheild custom realm

**URL:** <https://discuss.elastic.co/t/using-logback-within-sheild-custom-realm/48486>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [April 26, 2016, 10:45pm UTC](https://discuss.elastic.co/t/using-logback-within-sheild-custom-realm/48486 "2016-04-26T22:45:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jaymode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaymode/32/50103_2.png) [@jaymode](https://discuss.elastic.co/u/jaymode)\
**Post date:** [April 26, 2016, 11:07pm UTC](https://discuss.elastic.co/t/using-logback-within-sheild-custom-realm/48486/2 "2016-04-26T23:07:04Z")

</div>

I think you need to look into replacing log4j in elasticsearch with logback since shield does not control the logger; we piggyback on the elasticsearch infrastructure. There is an _old_ thread about it but I really have no idea if it will still work. [Replacing log4j with logback](https://discuss.elastic.co/t/replacing-log4j-with-logback/8470)

---

_[View the full topic](https://discuss.elastic.co/t/using-logback-within-sheild-custom-realm/48486)._
