Need log the who downloaded attachments

:face_with_thermometer:

My site canot know who downloaded attachments.

Check your nginx logs for that information.

nginx logs too big data.

now have 40,000 users. :face_with_thermometer:

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

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

but canot use 1.8

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

1개의 μ’‹μ•„μš”

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

1개의 μ’‹μ•„μš”

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.

μƒˆλ‘œμš΄ μ œν•œ 파일 ν”ŒλŸ¬κ·ΈμΈμ΄ μžˆλ‚˜μš”? λ§ν¬ν•˜μ‹  ν”ŒλŸ¬κ·ΈμΈμ€ κ½€ μ˜€λž˜λ˜μ–΄ μ΅œμ‹  λ²„μ „μ˜ Discourse와 ν˜Έν™˜λ˜μ§€ μ•Šμ„ 수 μžˆμ„ 것 κ°™μŠ΅λ‹ˆλ‹€.

https://meta.discourse.org/t/secure-media-uploads/meta/140017 을 μ°Έκ³ ν•΄ λ³΄μ‹œλŠ” 것은 μ–΄λ–¨κΉŒμš”?

와! μ’€ λ¬΄μ„­λ„€μš”.
그리고 S3(μ•„λ§ˆμ‘΄ S3λ₯Ό λ§ν•˜λŠ” κ±°μ£ ?)λ₯Ό μ•ˆ μ“°λ‚˜μš”?
κ·Έλž˜λ„ κ°μ‚¬ν•©λ‹ˆλ‹€.
νŒŒμΌμ„ λ‹€μš΄λ‘œλ“œν•œ μ‚¬λžŒλ“€μ˜ λͺ©λ‘λ§Œ μ–»κ³  싢은데, κ°€λŠ₯ν•˜λ‹€λ©΄ νŒŒμΌμ„ 인증된 μ‚¬μš©μžλ§Œ μ ‘κ·Όν•  수 μžˆλ„λ‘ λ³΄ν˜Έν•  수 있으면 더 μ’‹κ² μŠ΅λ‹ˆλ‹€!

데이터 탐색기λ₯Ό μ‚¬μš©ν•˜λ©΄ ν•΄λ‹Ή κ²Œμ‹œλ¬Όμ„ λ³Έ μ‚¬μš©μžμ˜ λͺ©λ‘μ„ κ°€μ Έμ˜¬ 수 μžˆμ„ 것 κ°™μŠ΅λ‹ˆλ‹€. λ‹€μš΄λ‘œλ“œν•œ μ‚¬μš©μžλ₯Ό 확인할 수 μžˆλŠ”μ§€λŠ” 잘 λͺ¨λ₯΄κ² μŠ΅λ‹ˆλ‹€.

μ˜ˆμ‚°μ΄ μžˆλ‹€λ©΄ λ‘œκ·ΈμΈν•œ μ‚¬μš©μžλ‘œ μ—…λ‘œλ“œ 접근을 μ œν•œν•˜λ„λ‘ λ„μ™€λ“œλ¦΄ 수 μžˆμŠ΅λ‹ˆλ‹€.

1개의 μ’‹μ•„μš”

κ°μ‚¬ν•©λ‹ˆλ‹€.
λΆˆν–‰νžˆλ„ ν˜„μž¬ μ»€μŠ€ν„°λ§ˆμ΄μ§•μ„ μœ„ν•œ μ˜ˆμ‚°μ΄ μ—†μŠ΅λ‹ˆλ‹€.

1개의 μ’‹μ•„μš”