# Using logstash for parsing logs

**URL:** <https://discuss.elastic.co/t/using-logstash-for-parsing-logs/24329>\
**Category:** Logstash\
**Created:** [June 25, 2015, 10:51am UTC](https://discuss.elastic.co/t/using-logstash-for-parsing-logs/24329 "2015-06-25T10:51:26Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![chinmoyd](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@chinmoyd](https://discuss.elastic.co/u/chinmoyd)\
**Post date:** [September 22, 2015, 5:33pm UTC](https://discuss.elastic.co/t/using-logstash-for-parsing-logs/24329/21 "2015-09-22T17:33:46Z")

</div>

I want to keep the value of a field as a sentence. For example "Apple and orange are different". The number of words in the sentence is not fixed. Please suggest the data type that I should use for this field in my logstash.conf within filter-\>grok. I had tried to keep the words within [] and "", but that did not help.

---

<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:** [July 6, 2017, 5:28am UTC](https://discuss.elastic.co/t/using-logstash-for-parsing-logs/24329/22 "2017-07-06T05:28:20Z")

</div>



[Previous page](https://discuss.elastic.co/t/using-logstash-for-parsing-logs/24329.md?page=1)
