# Deprecation logs

**URL:** <https://discuss.elastic.co/t/deprecation-logs/89457>\
**Category:** Elasticsearch\
**Created:** [June 14, 2017, 8:44pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457 "2017-06-14T20:44:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lask001](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lask001](https://discuss.elastic.co/u/lask001)\
**Post date:** [June 14, 2017, 8:44pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/1 "2017-06-14T20:44:50Z")

</div>

I'm trying to make sure my template is on the level right now, and I'm running into some warnings in the deprecation logs:

```
[2017-06-14T15:23:30,063][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [timeFieldName]
[2017-06-14T15:23:30,063][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [intervalName]
[2017-06-14T15:23:30,064][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [fields]
[2017-06-14T15:23:30,064][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [sourceFilters]
[2017-06-14T15:23:30,064][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [fieldFormatMap]
[2017-06-14T15:23:30,066][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [title]
[2017-06-14T15:23:30,066][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [timeFieldName]
[2017-06-14T15:23:30,067][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [intervalName]
[2017-06-14T15:23:30,067][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [fields]
[2017-06-14T15:23:30,067][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [sourceFilters]
[2017-06-14T15:23:30,068][WARN][o.e.d.i.m.StringFieldMapper$TypeParser] The [string] field is deprecated, please use [text] or [keyword] instead on [fieldFormatMap]

```

I'm having a hard time identifying where these warnings are coming from, and I wasn't very successful when trying to increase the verbosity is coming from. Could anyone point me in the right direction?

For reference, I'm on version 5.1.2 currently, though I will be upgrade to 5.4~ soon.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 14, 2017, 9:16pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/2 "2017-06-14T21:16:22Z")

</div>

Check your `_mapping` for fields that use `string` as the data type.

---

<div class="post-metadata">

**Author:** ![lask001](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lask001](https://discuss.elastic.co/u/lask001)\
**Post date:** [June 15, 2017, 12:58pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/3 "2017-06-15T12:58:28Z")

</div>

My question was more a long the lines of if there is a way to make the logging more verbose, so rather than stumbling around I can go directly to the issue. Thank you for the advice though. The one thing I haven't been able to figure out as of right now is the following error:

```
[WARN][o.e.d.s.g.GroovyScriptEngineService] [groovy] scripts are deprecated, use [painless] scripts instead

```

Any thoughts on either?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2017, 12:15am UTC](https://discuss.elastic.co/t/deprecation-logs/89457/4 "2017-06-16T00:15:33Z")

</div>

> [@lask001](#):
>
> My question was more a long the lines of if there is a way to make the logging more verbose, so rather than stumbling around I can go directly to the issue.

Ahh gotcha, adding the index name would be helpful. Can you raise a feature request on github?

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [June 16, 2017, 12:49am UTC](https://discuss.elastic.co/t/deprecation-logs/89457/5 "2017-06-16T00:49:34Z")

</div>

> [@lask001](#):
>
> [groovy] scripts are deprecated, use [painless] scripts instead

I think the message is pretty direct. You are using groovy scripts. Don't do that, they have been removed for 6.0. Use painless scripts. Can you suggest another way of wording that which would have made it more clear?

---

<div class="post-metadata">

**Author:** ![lask001](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lask001](https://discuss.elastic.co/u/lask001)\
**Post date:** [June 19, 2017, 2:51pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/6 "2017-06-19T14:51:55Z")

</div>

Yes, it would be nice if there was a more verbose setting to tell me where I'm using a groovy script. I fell in on an implementation and am scrambling to fix things left and right; it's hard to track everything down in an environment I didn't setup myself.

---

<div class="post-metadata">

**Author:** ![lask001](https://avatars.discourse-cdn.com/v4/letter/l/4da419/32.png) [@lask001](https://discuss.elastic.co/u/lask001)\
**Post date:** [June 19, 2017, 2:52pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/7 "2017-06-19T14:52:22Z")

</div>

Yes, will do!

---

<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 17, 2017, 2:52pm UTC](https://discuss.elastic.co/t/deprecation-logs/89457/8 "2017-07-17T14:52:50Z")

</div>

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