# Mapper attachments disable warn messages in logs

**URL:** <https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846>\
**Category:** Elasticsearch\
**Created:** [July 5, 2017, 6:45am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846 "2017-07-05T06:45:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [July 5, 2017, 6:45am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/1 "2017-07-05T06:45:14Z")

</div>

Hi,

I am using ES 2.3.2 with mapper attachments and when I send some attachment contents( in base64 format) for indexing, i see many warnings in the logs as below. How to disable these warnings as these run too much into logs

-04 08:19:38,528][WARN][org.apache.pdfbox.pdmodel.font.PDSimpleFont] No Unicode mapping for 20 (49) in font DGClUnicodeMS  
-04 08:19:38,528][WARN][org.apache.pdfbox.pdmodel.font.PDSimpleFont] No Unicode mapping for 19 (48) in font DGClUnicodeMS

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [July 5, 2017, 7:17am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/2 "2017-07-05T07:17:03Z")

</div>

Can we specifically set the logging level to ERROR for mapper-attachments only.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 5, 2017, 7:19am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/3 "2017-07-05T07:19:46Z")

</div>

You can change the logging level for org.apache.pdfbox package

---

<div class="post-metadata">

**Author:** ![SKumarMN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skumarmn/32/27537_2.png) [@SKumarMN](https://discuss.elastic.co/u/SKumarMN)\
**Post date:** [July 5, 2017, 7:32am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/4 "2017-07-05T07:32:50Z")

</div>

Thanks. is it a dynamic setting too or should i set it in logging.yml as below

```
es.logger.level: INFO
rootLogger: ${es.logger.level}, console, file
logger:
  # log action execution errors for easier debugging
  action: DEBUG
  org.apache.pdfbox: ERROR

  # deprecation logging, turn to DEBUG to see them
  deprecation: INFO, deprecation_log_file

  # reduce the logging for aws, too much is logged under the default INFO
  com.amazonaws: WARN
  # aws will try to do some sketchy JMX stuff, but its not needed.
  com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR
  com.amazonaws.metrics.AwsSdkMetrics: ERROR

  org.apache.http: INFO
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 5, 2017, 7:51am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/5 "2017-07-05T07:51:40Z")

</div>

Should be dynamic as well

---

<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:** [August 2, 2017, 7:51am UTC](https://discuss.elastic.co/t/mapper-attachments-disable-warn-messages-in-logs/91846/6 "2017-08-02T07:51:42Z")

</div>

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