# How can I avoid DocumentAlreadyExists exception logging?

**URL:** https://discuss.elastic.co/t/how-can-i-avoid-documentalreadyexists-exception-logging/10932
**Category:** Elasticsearch
**Created:** [February 27, 2013, 6:19pm UTC](https://discuss.elastic.co/t/how-can-i-avoid-documentalreadyexists-exception-logging/10932 "2013-02-27T18:19:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)
#### Post date: [February 27, 2013, 6:19pm UTC](https://discuss.elastic.co/t/how-can-i-avoid-documentalreadyexists-exception-logging/10932/1 "2013-02-27T18:19:41Z")

</div>

I saw previous post about this  
topic: [https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/documentalreadyexists/elasticsearch/hEsowZS0zJ4/anFBJaT6rXkJ](https://groups.google.com/forum/?fromgroups=#!searchin/elasticsearch/documentalreadyexists/elasticsearch/hEsowZS0zJ4/anFBJaT6rXkJ)

But I am seeing differently formatted log messages:

[999]: index [errors\_log20130227], type [default], id [1361989081], message  
[DocumentAlreadyExistsException[[errors\_log20130227][0]  
[default][1361989081]: document already exists]]

How can I turn off this logging?

FYI, the following is logging.yml file I am using

rootLogger: INFO, filelogger:

# log action execution errors for easier debugging # gateway

index.gateway: INFO

# peer shard recovery indices.recovery: INFO

# discovery discovery: INFO

index.search.slowlog: INFO, index\_search\_slow\_log\_file  
index.merge: INFOadditivity:  
index.search.slowlog: falseappender:  
file: type: dailyRollingFile file: ${path.logs}/${cluster.name}.log  
datePattern: "'.'yyyy-MM-dd" layout: type: pattern  
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"  
index\_search\_slow\_log\_file:  
type: dailyRollingFile file:  
${path.logs}/${cluster.name}\_index\_search\_slowlog.log datePattern:  
"'.'yyyy-MM-dd"  
layout: type: pattern conversionPattern:  
"[%d{ISO8601}][%-5p][%-25c] %m%n"

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 2:49am UTC](https://discuss.elastic.co/t/how-can-i-avoid-documentalreadyexists-exception-logging/10932/2 "2017-07-06T02:49:14Z")

</div>


