# How to install Fs Crawler in ubuntu?

**URL:** <https://discuss.elastic.co/t/how-to-install-fs-crawler-in-ubuntu/166932>\
**Category:** Elasticsearch\
**Created:** [February 4, 2019, 10:08am UTC](https://discuss.elastic.co/t/how-to-install-fs-crawler-in-ubuntu/166932 "2019-02-04T10:08:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [February 4, 2019, 10:08am UTC](https://discuss.elastic.co/t/how-to-install-fs-crawler-in-ubuntu/166932/1 "2019-02-04T10:08:47Z")

</div>

Can any one let me know how to setup FsCrawler in ubuntu and how to index pdf or text files to elasticsearch.  
Thanks in advance  
Kartheek

---

<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:** [February 4, 2019, 12:02pm UTC](https://discuss.elastic.co/t/how-to-install-fs-crawler-in-ubuntu/166932/2 "2019-02-04T12:02:29Z")

</div>

> Can any one let me know how to setup FsCrawler in ubuntu

You have to download it, unzip it, make sure `JAVA_HOME` is set and launch it.  
See [Getting Started — FSCrawler 2.10-SNAPSHOT documentation](https://fscrawler.readthedocs.io/en/latest/user/getting_started.html)  
I did not create yet any RPM/DEB packages. So if you want to run it as a service, you need to create the script files by yourself.

> how to index pdf or text files to elasticsearch.

You can use [ingest-attachment plugin](https://www.elastic.co/guide/en/elasticsearch/plugins/6.6/ingest-attachment.html) in which case you don't need at all FSCrawler.

You can use FSCrawler.  
2 modes for it:

- It can crawl a dir which contains your files (default).
- It can be run as [a REST Service](https://fscrawler.readthedocs.io/en/latest/admin/fs/rest.html#rest-service) where you can "upload" your file.

---

<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 4, 2019, 12:02pm UTC](https://discuss.elastic.co/t/how-to-install-fs-crawler-in-ubuntu/166932/3 "2019-03-04T12:02:30Z")

</div>

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