# Create index on pdf file input using logstash

**URL:** <https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724>\
**Category:** Logstash\
**Created:** [June 14, 2016, 11:01am UTC](https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724 "2016-06-14T11:01:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamanna](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@Tamanna](https://discuss.elastic.co/u/Tamanna)\
**Post date:** [June 14, 2016, 11:01am UTC](https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724/1 "2016-06-14T11:01:20Z")

</div>

Hi All,

I am new to Logstash and have little idea about it.  
I need to create an index in ElasticSearch on a pdf file.  
Ingesting this pdf file, i heard, can be done with Logstash.  
But i have no idea how it could be done.

Thanks in advance!!

---

<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 15, 2016, 9:58pm UTC](https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724/2 "2016-06-15T21:58:14Z")

</div>

You cannot ingest PDF with LS.  
[https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-attachments.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-attachments.html) may be what you want.

---

<div class="post-metadata">

**Author:** ![Tamanna](https://avatars.discourse-cdn.com/v4/letter/t/bbce88/32.png) [@Tamanna](https://discuss.elastic.co/u/Tamanna)\
**Post date:** [June 20, 2016, 11:06am UTC](https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724/3 "2016-06-20T11:06:15Z")

</div>

Hi Mark,

Thank you for replying.

I am trying the mapper-attachment but unable to succeed with it.  
The code is even confusing how exactly this plugin is working so that i can make out best of it.

I have tried out some codes available in web, but still the same.

Thanks in advance.

---

<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 6, 2017, 4:51am UTC](https://discuss.elastic.co/t/create-index-on-pdf-file-input-using-logstash/52724/4 "2017-07-06T04:51:54Z")

</div>


