# Input Elasticshearch

**URL:** <https://discuss.elastic.co/t/input-elasticshearch/127442>\
**Category:** Elasticsearch\
**Created:** [April 10, 2018, 8:16am UTC](https://discuss.elastic.co/t/input-elasticshearch/127442 "2018-04-10T08:16:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mee](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Mee](https://discuss.elastic.co/u/Mee)\
**Post date:** [April 10, 2018, 8:16am UTC](https://discuss.elastic.co/t/input-elasticshearch/127442/1 "2018-04-10T08:16:10Z")

</div>

Hello there!

I would like to index pptx documents.  
I install Elasticsarch and Ingest Attachment plugin. I've stored my document in a directory on local.  
Now I don't know how to import my directory as an input of Elasticsearch...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 10, 2018, 10:04am UTC](https://discuss.elastic.co/t/input-elasticshearch/127442/2 "2018-04-10T10:04:40Z")

</div>

You need to transform your document to BASE64 then send that as a field in your json document.

```auto
PUT _ingest/pipeline/attachment
{
  "description" : "Extract attachment information",
  "processors" : [
    {
      "attachment" : {
        "field" : "data"
      }
    }
  ]
}
PUT my_index/_doc/my_id?pipeline=attachment
{
  "data": "YOUR BASE 64 content here"
}
GET my_index/_doc/my_id

```

Have also a look at [FSCrawler](https://github.com/dadoonet/fscrawler#starting-with-a-rest-gateway) where you can do something like:

```auto
curl -F "file=@myfile.pptx" "http://127.0.0.1:8080/fscrawler/_upload"

```

Or just let it crawl your local dir.

---

<div class="post-metadata">

**Author:** ![Mee](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@Mee](https://discuss.elastic.co/u/Mee)\
**Post date:** [April 16, 2018, 8:31am UTC](https://discuss.elastic.co/t/input-elasticshearch/127442/3 "2018-04-16T08:31:47Z")

</div>

I would like to use **open semantic search etl**. It could be an agent wich send my documents to Elasticsearch?

---

<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 14, 2018, 8:31am UTC](https://discuss.elastic.co/t/input-elasticshearch/127442/4 "2018-05-14T08:31:57Z")

</div>

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