# Stdin input plugin missed some events

**URL:** https://discuss.elastic.co/t/stdin-input-plugin-missed-some-events/126530
**Category:** Logstash
**Created:** [April 3, 2018, 8:49am UTC](https://discuss.elastic.co/t/stdin-input-plugin-missed-some-events/126530 "2018-04-03T08:49:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Swati\_Sinha](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Swati\_Sinha](https://discuss.elastic.co/u/Swati_Sinha)
#### Post date: [April 3, 2018, 8:49am UTC](https://discuss.elastic.co/t/stdin-input-plugin-missed-some-events/126530/1 "2018-04-03T08:49:42Z")

</div>

Hi,

Trying to load data into elastic search using logstash config. I am using 'stdin' input plugin for reading data from a file, here is the command:

/usr/share/logstash/bin/logstash -f logstashConfigFile \< dataFile

logstashConfigFile contains:

input {  
stdin {}  
}  
filter {  
csv {  
separator =\> " "  
columns =\> ["id","address\_id","value"]  
}  
mutate {convert =\> ["id", "integer"] }  
mutate {convert =\> ["value", "float"] }  
}  
output {  
elasticsearch {  
hosts =\> ["localhost"]  
action =\> "update"  
doc\_as\_upsert =\> true  
document\_id =\> "%{id}"  
index =\> "zcli\_%{address\_id}"  
document\_type =\> "adresss"  
}  
file {  
path =\> "/home/tmp/logs/test.log"  
}  
}

DataFile have tab separated values. After the execution of the command, I noticed that total count of rows in the inputfile doesnot match to the total rows uploaded to elastic.

Suppose you have rows from 1 to 10000, then data is uploaded from 1 to 8000 and then rest last 2000 data missing in elastic. I am stuck at it, tried various things but nothing worked. Please help me out here.

---

<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: [May 1, 2018, 8:49am UTC](https://discuss.elastic.co/t/stdin-input-plugin-missed-some-events/126530/2 "2018-05-01T08:49:51Z")

</div>

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