How to get user's query record

Hello,

We are using druid 0.12.1 version.

Now we have a problem: We want to analyze the user’s query record, and find the slower queries.

What should I do?

Thanks.

I am a new learner, please help me~

Thanks.

Hi ,
I believe you should be able to emit metrics as mentioned here:

http://druid.io/docs/latest/operations/metrics.html

Hope that helps.

Regards,

Robert

Thank you for your reply, and it helped me a lot.

Hi,Robert
I have another question,how to get the query body,there is a query example as follows:

{

“queryType” : “topN”,

“dataSource” : “wikiticker”,

“intervals” : [“2015-09-12/2015-09-13”],

“granularity” : “all”,

“dimension” : “page”,

“metric” : “count”,

“threshold” : 10,

“aggregations” : [

{

“type” : “count”,

“name” : “count”

}

]

}

How to get this query body, I read the broker logs, but not found

Thanks,

He pan