NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Avon_Fox
Jan 07, 2012Aspirant
RESOLVED: Web Access Logger / Webalizer-like for NAS-Duo V2?
Hey there. I'm pretty new to all this and have just set up my ReadyNAS Duo to run as a web server.
I'm used to having an old Windows box running Apache which I ran Webalizer on to get monthly site and file access logs out of.
Does the NAS keep any access logs like that and if so how do I get at them; is there an add on for it?
I'm looking for things like,
~ amount of data accessed in any given time from that share
~ top 10 largest files accessed and how many times
~ top 10 URLs accessed by frequency
That sort of thing.
Cheers for any help guys!
I'm used to having an old Windows box running Apache which I ran Webalizer on to get monthly site and file access logs out of.
Does the NAS keep any access logs like that and if so how do I get at them; is there an add on for it?
I'm looking for things like,
~ amount of data accessed in any given time from that share
~ top 10 largest files accessed and how many times
~ top 10 URLs accessed by frequency
That sort of thing.
Cheers for any help guys!
6 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee RetiredSo you have the Duo v2 (RND2000-200) which runs RAIDiator 5.3.x and has the new Dashboard web-interface?
You could try to compile Webalizer but that might take a bit of work. Looks like it might be doable.
First you'd need to install SSH: http://www.readynas.com/download/addons/arm/5.3/EnableRootSSH_1.0-arm.bin
Then you'd need to do
apt-get update && apt-get install build-essential
You'd need to download the source code for Webalizer
You'd need to edit things in the Webalizer source e.g. location of apache log file
Add some files that are missing to your NAS (see http://www.webalizer.org/faq.html). These are stripped from the firmware to keep the size down, but can be obtained in the GPL: http://www.readynas.com/gpl
Then attempt to compile it.
Now it depends a lot on the dependencies as to whether it will work, but you can give it a try. - Avon_FoxAspirantI think I'm getting confused, my NAS has RND2000 v2 on the bottom. Maybe I'm getting the models confused.
Its running 4.1.7. - mdgm-ntgrNETGEAR Employee RetiredAh, that's a Sparc NAS, a Duo v1 (RND2000-100 - might see this on the bottom of the NAS). it's called a RND2000 v2 due to it having a slight hardware change. Confusing, I know.
To install Webalizer ou'd need to install EnableRootSSH for Sparc (http://www.readynas.com/?p=4203) via System > Update > Local and then see if you could do the above. - Avon_FoxAspirantI'm pretty new to all this but I've solved this problem so I thought that I'd pass it on for newcomers like myself.
So I could get the stats for web access needed as per above posts I found the file I needed here: /var/log/frontview/access.log and wrote a script for putty to log in, stop Apache, copy access.log to one of my shares and then pointed Webalizer to that share and ran the report generator.
Works a treat with only one click! Just remember to stop Apache first (and restart it after) otherwise the access.log file seems to copy corrupt; or at any rate Webalizer (and possibly other report generators) couldn't read it. - sphardy1ApprenticeFYI - awstats (http://awstats.sourceforge.net/) works well on ReadyNAS with the standard access.log. Easy to setup to update stats daily without having to stop apache or anything like that. Had it running for a couple of years and never had to touch it since installing
eg here's a 'live update':
- Avon_FoxAspirantCheers for the information. I'll check it out.
At the moment I'm running webalizer on a different host and interrogating the log remotely (due to infrastructure requirements) but I'll see about bending some rules to try this out.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!