How We can extract query

I have this url
https://www.reddit.com/search?q=apple
i want to extract query parameter from thie url
how?

Use a dissect filter

dissect { mapping => { "somefield" => "%{url}?%{qs}" } }
kv { source = "qs" field_split => "&" }

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