Artfifactory展示下载文件的用户 [英] Artfifactory show users that downloaded file
问题描述
我想找出哪些用户从Artifactory下载了文件.实际上,我只在Artifactory"GUI"中看到执行了最后一次下载的用户.我试图在REST API中找到相应的资源,但找不到.
I want to find out which users have downloaded a file from Artifactory. Actually, I only see the user that performed the last download in the Artifactory "GUI". I tried to find a corresponding resource in the REST API but wasn't able to find one.
我的问题:Artifactory是否提供Web API来找出哪些用户下载了特定文件?
My question: Does Artifactory offer a web API to find out which users have downloaded a specific file?
Thx
推荐答案
Artifactory中没有用于您请求的行为的UI.
There is no UI for your requested behavior in Artifactory.
您可以查看位于$ARTIFACTORY_HOME/logs
的"request.log"并搜索所请求的文件,在那里您将看到所有请求此文件的用户(请注意,所有日志文件都启用了轮换功能,因此您将拥有多个"request.log").
You can look at the "request.log" located in $ARTIFACTORY_HOME/logs
and search for the requested file, there you will see all users that requested this file (please note that all log files have rotation enabled, so you will have more than one "request.log").
下载文件的日志条目示例:
20180115190621|48|REQUEST|10.0.0.1|admin|GET|/generic-local/demo_copy.key|HTTP/1.1|200|3272
Example of a log entry of downloading a file:
20180115190621|48|REQUEST|10.0.0.1|admin|GET|/generic-local/demo_copy.key|HTTP/1.1|200|3272
希望这会有所帮助!
这篇关于Artfifactory展示下载文件的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!