# Read files from local directory and Build Index

**URL:** <https://discuss.elastic.co/t/read-files-from-local-directory-and-build-index/141288>\
**Category:** Elasticsearch\
**Created:** [July 24, 2018, 4:38am UTC](https://discuss.elastic.co/t/read-files-from-local-directory-and-build-index/141288 "2018-07-24T04:38:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thompsonlau](https://avatars.discourse-cdn.com/v4/letter/t/e9a140/32.png) [@thompsonlau](https://discuss.elastic.co/u/thompsonlau)\
**Post date:** [July 24, 2018, 4:38am UTC](https://discuss.elastic.co/t/read-files-from-local-directory-and-build-index/141288/1 "2018-07-24T04:38:46Z")

</div>

Hi,

I have configured my Linux (CentOS) server to collect logs from different sources and stores then in defined directories. Elastic search package is installed on the same server.

How can I configure elasticsearch read the logs from those directories and build index such that I can see on Kibana?

Thanks !

---

<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:** [July 24, 2018, 7:14am UTC](https://discuss.elastic.co/t/read-files-from-local-directory-and-build-index/141288/2 "2018-07-24T07:14:38Z")

</div>

Elasticsearch never reads any data from any source.

Have a look at filebeat.

---

<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:** [August 21, 2018, 7:14am UTC](https://discuss.elastic.co/t/read-files-from-local-directory-and-build-index/141288/3 "2018-08-21T07:14:38Z")

</div>

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