# Indexing emails to elasticsearch

**URL:** <https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275>\
**Category:** Elasticsearch\
**Created:** [May 10, 2018, 9:18am UTC](https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275 "2018-05-10T09:18:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rouchad\_rouchad](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rouchad\_rouchad](https://discuss.elastic.co/u/rouchad_rouchad)\
**Post date:** [May 10, 2018, 9:18am UTC](https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275/1 "2018-05-10T09:18:00Z")

</div>

hello everyone .. finally my indexing code worked just there is an error when the messages are transmitted from gmail to kibana they do not pass all i found just a few

input {  
imap {  
host =\> "[imap.gmail.com](http://imap.gmail.com)"  
password =\> "xxxxxxxxxx"  
user =\> "rouchad767@gmail.com"  
port =\> 993  
check\_interval =\> 50  
folder =\> "Inbox"  
}  
}  
output {  
elasticsearch {  
index =\> "firsttest"  
document\_type =\> "email"  
hosts =\> "localhost:9200"  
}

}

what i need to do

---

<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:** [May 10, 2018, 9:25am UTC](https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275/2 "2018-05-10T09:25:58Z")

</div>

> [@rouchad\_rouchad](#):
>
> there is an error

You will need to show the error in full 🙂

---

<div class="post-metadata">

**Author:** ![rouchad\_rouchad](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@rouchad\_rouchad](https://discuss.elastic.co/u/rouchad_rouchad)\
**Post date:** [May 10, 2018, 9:31am UTC](https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275/3 "2018-05-10T09:31:25Z")

</div>

thank you ... i don't know there no error when i check kibana i found only few emails  
i don't know if logstash takes more time to to transmit all of data

---

<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:** [June 7, 2018, 9:31am UTC](https://discuss.elastic.co/t/indexing-emails-to-elasticsearch/131275/4 "2018-06-07T09:31:28Z")

</div>

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