Slackbot
06/08/2023, 7:56 AMSergio Ferragut
06/08/2023, 4:51 PMswitching
request logger. Something like:
druid.request.logging.type=switching
druid.request.logging.nativeQueryLogger # don't specify, defaults to None
druid.request.logging.sqlQueryLogger=emitter
Eric Chin
06/08/2023, 5:17 PMEric Chin
06/13/2023, 11:34 PMSergio Ferragut
06/13/2023, 11:37 PMEric Chin
06/13/2023, 11:39 PMSELECT TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS
I get this logged when switching to the "Query" tab in the UI.Eric Chin
06/13/2023, 11:41 PMEric Chin
06/13/2023, 11:48 PMSergio Ferragut
06/14/2023, 12:14 AMdruid.request.logging.excludeSchemas=["information_schema","sys"]
Do you want to create a github issue with the feature request? You can do that here: https://github.com/apache/druid/issues/new/chooseEric Chin
06/14/2023, 12:17 AMswitching
and setting the types of both the nativeQueryLogger
and sqlQueryLogger
to {"type": "emitter", "feed": <feed-name>}
but it seems that it only logs the sql queries to the topic I created using the kafka-emitter
extension. It logs the proper sql query and feed, but the native query is nowhere to be found. I feel like I'm missing some configs. Thank you!Sergio Ferragut
06/14/2023, 8:15 PMEric Chin
06/14/2023, 9:26 PMkafka-emitter
supports emitting with formats other than JSON (e.g. Thrift)?JRob
07/12/2023, 7:01 PMdruid.request.logging.type=switching
druid.request.logging.sqlQueryLogger=file
druid.request.logging.dir=log/
druid.request.logging.filePattern='request-'yyyy-MM-dd'.log'
druid.request.logging.durationToRetain=P7D
I also tried this:
druid.request.logging.type=filtered
druid.request.logging.sqlQueryTimeThresholdMs=5000 // Log requests that took longer than 5s
druid.request.logging.delegate.type=file
druid.request.logging.dir=log/
druid.request.logging.filePattern='request-'yyyy-MM-dd'.log'
druid.request.logging.durationToRetain=P7D
But again no luck.
The only one I got working is this (but it logs WAAAAY too much):
druid.request.logging.type=file
druid.request.logging.dir=log/
druid.request.logging.filePattern='request-'yyyy-MM-dd'.log'
druid.request.logging.durationToRetain=P7D