# Dropping stacktrace Lines after greedy data

**URL:** <https://discuss.elastic.co/t/dropping-stacktrace-lines-after-greedy-data/97303>\
**Category:** Logstash\
**Created:** [August 16, 2017, 5:00pm UTC](https://discuss.elastic.co/t/dropping-stacktrace-lines-after-greedy-data/97303 "2017-08-16T17:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sentinel](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sentinel](https://discuss.elastic.co/u/sentinel)\
**Post date:** [August 16, 2017, 5:00pm UTC](https://discuss.elastic.co/t/dropping-stacktrace-lines-after-greedy-data/97303/1 "2017-08-16T17:00:19Z")

</div>

I've got these lines that are after my greedy data similar to these:

**at au.com.xxx.etrading.xxxxx.messaging.tum.AbstractTumProtoSubscriber$TumProtoEventListener.go**

and logstash attempts to process them thereby generating a lot of stack trace errors like these:

**BulkShardRequest [[logstash-2017.08.16-pf][2]] containing [14] requests**  
**org.elasticsearch.index.mapper.MapperParsingException: Could not dynamically add mapping for field [Thread.java]. Existing mapping for [Thread] must be of type object but found [text]**

They come right after my greedydata line. How do I drop the first lines so they don't get processed so I can avoid all the errors.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 18, 2017, 7:22am UTC](https://discuss.elastic.co/t/dropping-stacktrace-lines-after-greedy-data/97303/2 "2017-08-18T07:22:28Z")

</div>

Didn't you recently ask the same question in another thread?

Instead of deleting useful stacktrace line you should use a multiline codec to join the lines of the stacktrace with the log message they come from.

---

<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:** [September 15, 2017, 7:22am UTC](https://discuss.elastic.co/t/dropping-stacktrace-lines-after-greedy-data/97303/3 "2017-09-15T07:22:39Z")

</div>

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