To extract fields from a query string

If kv conflicts with grok? Because I am trying to use grok parse the log. And then addressing the query field to jsonify.