# Is there a way to index a text file which has the data in the following format

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396>\
**Category:** Logstash\
**Created:** [May 13, 2020, 9:11am UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396 "2020-05-13T09:11:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 13, 2020, 9:11am UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/1 "2020-05-13T09:11:16Z")

</div>

device="ABC" date=2010-05-12 time=15:24:10 timezone="IST" device\_name="PG15625"  
device="ABC" date=2010-05-12 time=15:24:10 timezone="IST" device\_name="PG15625"  
device="ABC" date=2010-05-12 time=15:24:10 timezone="IST" device\_name="PG15625"  
device="ABC" date=2010-05-12 time=15:24:10 timezone="IST" device\_name="PG15625"  
device="ABC" date=2010-05-12 time=15:24:10 timezone="IST" device\_name="PG15625"

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [May 13, 2020, 10:29am UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/2 "2020-05-13T10:29:15Z")

</div>

yes. how you want it to be indexed?

---

<div class="post-metadata">

**Author:** ![avneshkumar98](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@avneshkumar98](https://discuss.elastic.co/u/avneshkumar98)\
**Post date:** [May 13, 2020, 10:31am UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/3 "2020-05-13T10:31:37Z")

</div>

I'm looking for a config file through which I can index my data.I'm new to ELK.

---

<div class="post-metadata">

**Author:** ![ptamba](https://avatars.discourse-cdn.com/v4/letter/p/7feea3/32.png) [@ptamba](https://discuss.elastic.co/u/ptamba)\
**Post date:** [May 13, 2020, 10:35am UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/4 "2020-05-13T10:35:32Z")

</div>

i would suggest you start [here](https://www.elastic.co/blog/a-practical-introduction-to-logstash).

---

<div class="post-metadata">

**Author:** ![wwalker](https://avatars.discourse-cdn.com/v4/letter/w/43a26b/32.png) [@wwalker](https://discuss.elastic.co/u/wwalker)\
**Post date:** [May 13, 2020, 4:24pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/5 "2020-05-13T16:24:02Z")

</div>

Use a file input, the kv filter to parse, then output to...I guess 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:** [June 10, 2020, 4:24pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-index-a-text-file-which-has-the-data-in-the-following-format/232396/6 "2020-06-10T16:24:14Z")

</div>

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