# How to print Query parameters also along with the query?

**URL:** <https://discuss.elastic.co/t/how-to-print-query-parameters-also-along-with-the-query/194016>\
**Category:** APM\
**Created:** [August 6, 2019, 1:10pm UTC](https://discuss.elastic.co/t/how-to-print-query-parameters-also-along-with-the-query/194016 "2019-08-06T13:10:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumarvivek633](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumarvivek633/32/43303_2.png) [@kumarvivek633](https://discuss.elastic.co/u/kumarvivek633)\
**Post date:** [August 6, 2019, 1:10pm UTC](https://discuss.elastic.co/t/how-to-print-query-parameters-also-along-with-the-query/194016/1 "2019-08-06T13:10:37Z")

</div>

I am using APM 6.6 to monitor application performance along with Elasticsearch and Kibana but the thing is that i want to show the sql parameters as well. How can i achieve this

---

<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 7, 2019, 2:28am UTC](https://discuss.elastic.co/t/how-to-print-query-parameters-also-along-with-the-query/194016/2 "2019-08-07T02:28:20Z")

</div>

Hi @kumarvivek633,

We do not capture parameters as they may contain sensitive information.

For now you would need to log these separately. Depending on the agent and logger you use, you could then correlate your traces and logs to find this additional context, e.g. for Java: [https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-enable-log-correlation)

---

<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:** [August 27, 2019, 10:28pm UTC](https://discuss.elastic.co/t/how-to-print-query-parameters-also-along-with-the-query/194016/3 "2019-08-27T22:28:21Z")

</div>

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