# Can logstash automatically identify KV pairs in the logs and parse them

**URL:** <https://discuss.elastic.co/t/can-logstash-automatically-identify-kv-pairs-in-the-logs-and-parse-them/96464>\
**Category:** Logstash\
**Created:** [August 9, 2017, 2:53pm UTC](https://discuss.elastic.co/t/can-logstash-automatically-identify-kv-pairs-in-the-logs-and-parse-them/96464 "2017-08-09T14:53:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shroh](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@shroh](https://discuss.elastic.co/u/shroh)\
**Post date:** [August 9, 2017, 2:53pm UTC](https://discuss.elastic.co/t/can-logstash-automatically-identify-kv-pairs-in-the-logs-and-parse-them/96464/1 "2017-08-09T14:53:59Z")

</div>

Can Logstash automatically identify KV pairs in the logs and parse them just like how splunk does.

I actually wrote one GROK filter which parses the fields and defined a KV filter so that the additional fields can be parsed out. But some logs are so random that they dont match my GROK and from those logs i have to parse the KV pairs into fields.

---

<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:** [September 6, 2017, 2:54pm UTC](https://discuss.elastic.co/t/can-logstash-automatically-identify-kv-pairs-in-the-logs-and-parse-them/96464/2 "2017-09-06T14:54:14Z")

</div>

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