Logging Client Access

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
richiegecko
Posts:2
Joined:Sat Aug 20, 2011 3:51 pm
AV Hardware:UE40C6710 / Thecus N2100
Logging Client Access

Post by richiegecko » Sat Aug 20, 2011 3:56 pm

Hello,

is it possible to log which client accesses which file on twonky server and how long?

Richie

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Logging Client Access

Post by parnott » Sat Aug 20, 2011 6:48 pm

The only way I know of would be to turn on logging in Twonky. Then write a script/process to analyse the log file to pick out the client requests you are interested in.

Downsides-
1) The log file will be huge because of all the other information that is recorded in the log.
2) Don't believe there is any way to determine how long a client was accessing the server. Maybe there is, but I have not looked at Twonky log files for some time.

PS. Why do you want to do this?

richiegecko
Posts:2
Joined:Sat Aug 20, 2011 3:51 pm
AV Hardware:UE40C6710 / Thecus N2100

Re: Logging Client Access

Post by richiegecko » Sun Aug 21, 2011 10:31 am

do you know whch loglevel i have to choose? build a script and "grep&sed" the needed entries should not be the problem.

by the way: twonky is running at home - it's only for my own interessest. the play instinct that comes when running a small home server.

User avatar
parnott
Posts:326
Joined:Mon Sep 20, 2010 9:55 pm
AV Hardware:Twonky, WDTV Live, XBMC (Linux & Windows)

Re: Logging Client Access

Post by parnott » Sun Aug 21, 2011 5:29 pm

These days I just turn on logging in the Maintenance config page.

The ini file does have this option-
# Log level (0:debug, 1:trace, 2:info, 3:warning, 4:error, 5:critical)
vlevel=4

My guess would be 1 or 2. But you may have to experiment.

Locked