TimoKunze / files_trackdownloads

📥⚡ Creates activities for downloads of shared files and makes them visible to all administrators.
https://apps.nextcloud.com/apps/files_trackdownloads
6 stars 3 forks source link

How to know? #1

Open rayg00n opened 6 years ago

rayg00n commented 6 years ago

How can administrators get information about new shared links created by other users? Example:

  1. User "A" share files by link
  2. User "A" sent link to user "B"
  3. User "B" download information from link
  4. Administrator do not see any information about this process in web-interface Activity-tab
asseti6 commented 6 years ago

@rayg00n This issue should also be resolved in part by #3 which was duplicated by #2 . Administrator would see User B's IP Address and could see the original link share in the history.

rayg00n commented 6 years ago

That's not so. When user A share link to User B, Administrator C do not see this in his Activity Tab. And this is big problem. I think activity tab problems exist because all activity log by default write to base (mariadb, mysql etc.) In my case the only way to see who and when doing public new folders is turn on logging ('loglevel' => 1, in config.php) to cath all information in my nextcloud.log Some event like that: {"reqId":"W5tudU9pkfdSIQM6rpufSwAAABE","level":1,"time":"2018-09-14T08:16:53+00:00","remoteAddr":"x.x.x.x","user":"9FFB3133-EF03-40E1-9F7F-58C9EFF0063A","app":"admin_audit","method":"POST","url":"\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"The folder \"\/PAPKA\" with ID \"16046\" has been shared to the user \"61553FA8-275B-41FB-88E4-CFD053E9DC49\" with permissions \"31\" (Share ID: 36)","userAgent":"Mozilla\/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko\/20100101 Firefox\/47.0","version":"13.0.6.1"} But i do not want to increase my nextcloud.log and check it from commanld line (bash script) or look at my log web-panel (like "yourdomai.com/index.php/settings/admin/logging") because is is uncomfortable. I also do not want to see in my log information about the successful connection to my Ldap-server, but there is no way to log only warnings,errors and shared folders events. As a result i must parse big nextcloud.log with my bashscript to see user and public folders names, but even in this case i do not see shared link (like http://yourdomain/index.php/s/A3r6xmm3cMzPxZJ! That is a problem.

I work to solve it. https://help.nextcloud.com/t/audit-logging-russian-text/36386

DovArcher commented 5 years ago

it doesn't work with FTP shares also