Need log the who downloaded attachments


(R Zarni) #1

:face_with_thermometer:

My site canot know who downloaded attachments.


(Jeff Atwood) #2

Check your nginx logs for that information.


(R Zarni) #3

nginx logs too big data.

now have 40,000 users. :face_with_thermometer:


(R Zarni) #4

Now only have counter, I wanto logs who user download. can it be technically possible?


(R Zarni) #5

I find this GitHub - discourse-pro/df-restricted-files: The «Restricted Files» plugin for Discourse

but canot use 1.8


(Daniela) #6

You can install Data explorer plugin and write an SQL query for that (or ask here if someone can write a query for you What cool data explorer queries have you come up with?)


(Christoph) #7

Note that attachments can be downloaded by anyone who has the link.


(R Zarni) #8

I have a idea, use

script/nginx_analyze.rb

can help me add the code ? Output all zip and rar url User access Filename + username.

So I know who downloaded it.