# Elapsed Plugin Negative elapsed\_time

**URL:** <https://discuss.elastic.co/t/elapsed-plugin-negative-elapsed-time/74877>\
**Category:** Logstash\
**Created:** [February 13, 2017, 12:09pm UTC](https://discuss.elastic.co/t/elapsed-plugin-negative-elapsed-time/74877 "2017-02-13T12:09:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varundbest](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varundbest/32/48066_2.png) [@varundbest](https://discuss.elastic.co/u/varundbest)\
**Post date:** [February 13, 2017, 12:09pm UTC](https://discuss.elastic.co/t/elapsed-plugin-negative-elapsed-time/74877/1 "2017-02-13T12:09:28Z")

</div>

There are no unique ids in my logs so i'm creating my own by adding multiple fields but the thing is that they may repeat over time.

My LOC #1457(END Tag) is matching with #1559 (START Tag) instead of #1450(START Tag).  
#1450(Start Tag) is matching with #1556(END Tag) instead of #1457(END Tag).  
It is also very non-deterministic in this when i run it multiple times with same logs.

I believe its not reading the logs in a serialized manner otherwise this problem would never happen. My input config :-

> input {  
> file {  
> path =\> "/home/vsharma/Documents/logstash-5.1.2/bin/varun1.log"  
> }  
> }

Any way to get it logstash to go through my logs sequentially? Example :- line 1, line 2, 3....  
Edit:  
Seems like logstash is sequential but threads in elapsed plugin are not. Any suggestion?

---

<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:** [March 13, 2017, 12:09pm UTC](https://discuss.elastic.co/t/elapsed-plugin-negative-elapsed-time/74877/2 "2017-03-13T12:09:44Z")

</div>

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