# Log file configuration document source

**URL:** https://discuss.elastic.co/t/log-file-configuration-document-source/13144
**Category:** Elasticsearch
**Created:** [August 9, 2013, 7:35am UTC](https://discuss.elastic.co/t/log-file-configuration-document-source/13144 "2013-08-09T07:35:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sagar\_Mehta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_mehta/32/2138_2.png) [@Sagar\_Mehta](https://discuss.elastic.co/u/Sagar_Mehta)
#### Post date: [August 9, 2013, 7:35am UTC](https://discuss.elastic.co/t/log-file-configuration-document-source/13144/1 "2013-08-09T07:35:38Z")

</div>

I am indexing full text documents using the mapper attachments plugin.  
Sometimes, documents can't be parsed... but my log files get polluted with  
the entire base64 encoded source of the document which makes them hard to  
look through. The exception in question is:

org.elasticsearch.index.mapper.MapperParsingException

I do want to know when things fail indexing, but I don't want to see the  
entire source, instead the \_id is probably sufficient... is there a way to  
configure the logging to do this or is basically all or none with this type  
of exception?

--  
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:21am UTC](https://discuss.elastic.co/t/log-file-configuration-document-source/13144/2 "2017-07-06T02:21:52Z")

</div>


