# Parsing data using logstash

**URL:** <https://discuss.elastic.co/t/parsing-data-using-logstash/228155>\
**Category:** Logstash\
**Created:** [April 15, 2020, 3:26pm UTC](https://discuss.elastic.co/t/parsing-data-using-logstash/228155 "2020-04-15T15:26:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ananya\_Mohiley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ananya_mohiley/32/61989_2.png) [@Ananya\_Mohiley](https://discuss.elastic.co/u/Ananya_Mohiley)\
**Post date:** [April 15, 2020, 3:26pm UTC](https://discuss.elastic.co/t/parsing-data-using-logstash/228155/1 "2020-04-15T15:26:06Z")

</div>

hi am trying to parse text files using a suitable filter however getting stuck, the file looks as under  
file name@@@@@@@@@@@@@@@@@@@@@@@@@@dummy report 1.docx  
data = ROUTINE REPORT

from = 17  
to = 70  
orig = main office  
info =  
HQ Benz  
india office  
bangladesh office  
srilanka office

activity : sales  
location: new delhi,34.08374  
total sold: 03

dealers : XYZ Automobiles

models: pqr,qws,wer

activity : servicing  
Location: mumbai,34.08374, 74.789902

problems: engine malfunctioning, tail light problem,axle problem

service centre: Das autos

Date: 29052020  
i need to split these something into key value pairs which are seperated by either "=" or ":" . there will be a case wherein each file will have more or lesser fields or maybe os similar or dissimilar order.

please suggest what should be the approach

---

<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 13, 2020, 3:26pm UTC](https://discuss.elastic.co/t/parsing-data-using-logstash/228155/2 "2020-05-13T15:26:12Z")

</div>

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