# Parsing context.request.url.search

**URL:** https://discuss.elastic.co/t/parsing-context-request-url-search/145243
**Category:** APM
**Created:** [August 20, 2018, 8:56pm UTC](https://discuss.elastic.co/t/parsing-context-request-url-search/145243 "2018-08-20T20:56:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Chait](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_chait/32/33816_2.png) [@David\_Chait](https://discuss.elastic.co/u/David_Chait)
#### Post date: [August 20, 2018, 8:56pm UTC](https://discuss.elastic.co/t/parsing-context-request-url-search/145243/1 "2018-08-20T20:56:38Z")

</div>

I am attempting to break out the various params into individual datapoints. I.e:

?simplrAccountId=thisisanaccountid&smbName=xyz

should populate two seperate parameters, simplrAccountId and smbName. How would I go about making this change to the schema?

---

<div class="post-metadata">

### Author: ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)
#### Post date: [August 21, 2018, 1:24am UTC](https://discuss.elastic.co/t/parsing-context-request-url-search/145243/2 "2018-08-21T01:24:28Z")

</div>

Hi David,

What is your ultimate goal? To be able to search transactions by simplrAccountId and smbName?

We don't create searchable fields for each query item because those query strings aren't necessarily within your control. If we we were to make searchable fields for them, then a malicious user could craft a query string that creates strain on your Elasticsearch.

In the next release, the APM Server will have support for [sending data to Logstash](https://www.elastic.co/guide/en/apm/server/master/logstash-output.html). You could set up a pipeline to transform the events, pulling out the specific fields you care about.

HTH,  
Andrew

---

<div class="post-metadata">

### Author: ![David\_Chait](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_chait/32/33816_2.png) [@David\_Chait](https://discuss.elastic.co/u/David_Chait)
#### Post date: [August 21, 2018, 4:23pm UTC](https://discuss.elastic.co/t/parsing-context-request-url-search/145243/3 "2018-08-21T16:23:38Z")

</div>

That makes perfect sense, thanks Andrew!

---

<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 11, 2018, 12:23pm UTC](https://discuss.elastic.co/t/parsing-context-request-url-search/145243/4 "2018-09-11T12:23:39Z")

</div>

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