简体   繁体   English

如何查看已发送到ArangoDB服务器的查询

[英]how can I see which queries have been sent to the ArangoDB server

I want to quickly gather all queries sent to my ArangoDB server from an application that uses the python-arangodb driver without digging through the source and without resorting to sniffing HTTP traffic to the REST API. 我想快速收集从使用python-arangodb驱动程序的应用程序发送到我的ArangoDB服务器的所有查询,而不需要挖掘源代码,也不需要嗅探到REST API的HTTP流量。

Isn't there some admin/audit log on the ArangoDB web UI which shows me what queries have been sent to the server? ArangoDB Web UI上是否有一些管理/审核日志,它显示了哪些查询已发送到服务器?

Using 3.2.5 here. 在这里使用3.2.5。

You can have all the queries sent to a log file from 3.x and up. 您可以将所有查询从3.x及更高版本发送到日志文件。

Start with option: --log.level queries=trace --log.output queries=file:///path/to/queries.log 从选项开始: - --log.level queries=trace --log.output queries=file:///path/to/queries.log

From: https://docs.arangodb.com/devel/Manual/ReleaseNotes/NewFeatures30.html 来自: https//docs.arangodb.com/devel/Manual/ReleaseNotes/NewFeatures30.html

Only other way is to implement the logging at the driver level, as far as I know. 据我所知,只有其他方法是在驱动程序级别实现日志记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM