# Parsing syslog param1=value1 param2="value2"

**URL:** <https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565>\
**Category:** Logstash\
**Created:** [November 16, 2020, 3:49pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565 "2020-11-16T15:49:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elitlogik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitlogik/32/78920_2.png) [@Elitlogik](https://discuss.elastic.co/u/Elitlogik)\
**Post date:** [November 16, 2020, 3:49pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565/1 "2020-11-16T15:49:42Z")

</div>

Trying to learn GROK by using the GROK debugger tool in Kibana.

Data is stuctured like this:

param1=value1 param2="value 2" param4=param4  
param1=value1 param2="value 2" param3=param3 param4=param4

Questions are:

1. Will I be able to write a filter/GROK that takes care of a dynamic structure (sometimes paramX is missing)?

2. Do I need to define the structure? Can't I just make [foreach paramX, store the key paramX with a value of valueX]?

The only thing that's complicating parsing is that sometimes valueX contains one or more spaces, but then its surrounded by "

Thank you very much for your support!

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 16, 2020, 3:54pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565/2 "2020-11-16T15:54:39Z")

</div>

Why not use a [kv](https://www.elastic.co/guide/en/logstash/current/plugins-filters-kv.html) filter?

---

<div class="post-metadata">

**Author:** ![Elitlogik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitlogik/32/78920_2.png) [@Elitlogik](https://discuss.elastic.co/u/Elitlogik)\
**Post date:** [November 16, 2020, 3:56pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565/3 "2020-11-16T15:56:03Z")

</div>

Thank you for your reply. Please tell me a little more... Is that a plugin? Why would threre be a benefit?

---

<div class="post-metadata">

**Author:** ![Elitlogik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitlogik/32/78920_2.png) [@Elitlogik](https://discuss.elastic.co/u/Elitlogik)\
**Post date:** [November 16, 2020, 9:52pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565/4 "2020-11-16T21:52:00Z")

</div>

Thank you very much for pointing me in the right direction 🙂

---

<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:** [December 14, 2020, 9:52pm UTC](https://discuss.elastic.co/t/parsing-syslog-param1-value1-param2-value2/255565/5 "2020-12-14T21:52:29Z")

</div>

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