# Best way to parse the KV values in logs coming from winlog beat

**URL:** <https://discuss.elastic.co/t/best-way-to-parse-the-kv-values-in-logs-coming-from-winlog-beat/102918>\
**Category:** Logstash\
**Created:** [October 5, 2017, 9:20pm UTC](https://discuss.elastic.co/t/best-way-to-parse-the-kv-values-in-logs-coming-from-winlog-beat/102918 "2017-10-05T21:20:25Z")\
**Posts on this page:** 3\
**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:** [October 5, 2017, 9:20pm UTC](https://discuss.elastic.co/t/best-way-to-parse-the-kv-values-in-logs-coming-from-winlog-beat/102918/1 "2017-10-05T21:20:25Z")

</div>

Hi experts,

My windows event logs are coming through win log beat and have some key value pairs when i see the xml format of the logs. Is there a way i can parse these fields as key value pairs?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/best-way-to-parse-the-kv-values-in-logs-coming-from-winlog-beat/102918/2 "2017-10-05T23:28:08Z")

</div>

You need to use Logstash to break things apart and extract the KVs.

---

<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:** [November 2, 2017, 11:28pm UTC](https://discuss.elastic.co/t/best-way-to-parse-the-kv-values-in-logs-coming-from-winlog-beat/102918/3 "2017-11-02T23:28:10Z")

</div>

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