# Best input file type for logstash

**URL:** <https://discuss.elastic.co/t/best-input-file-type-for-logstash/150157>\
**Category:** Logstash\
**Created:** [September 27, 2018, 9:18am UTC](https://discuss.elastic.co/t/best-input-file-type-for-logstash/150157 "2018-09-27T09:18:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohamed.Yousry](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@Mohamed.Yousry](https://discuss.elastic.co/u/Mohamed.Yousry)\
**Post date:** [September 27, 2018, 9:18am UTC](https://discuss.elastic.co/t/best-input-file-type-for-logstash/150157/1 "2018-09-27T09:18:15Z")

</div>

Hi

I am new to elastic, and trying to make dashboard for logs, I want to what's the best type for file input (txt, CSV, or reading from DB )

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 27, 2018, 10:23am UTC](https://discuss.elastic.co/t/best-input-file-type-for-logstash/150157/2 "2018-09-27T10:23:12Z")

</div>

If you have data in files use the file input plugin. If you have data in a database use the jdbc input. Both options work fine from a Logstash perspective.

---

<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:** [October 25, 2018, 10:23am UTC](https://discuss.elastic.co/t/best-input-file-type-for-logstash/150157/3 "2018-10-25T10:23:19Z")

</div>

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