× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

RESOLVED: Web Access Logger / Webalizer-like for NAS-Duo V2?

Avon_Fox
Aspirant

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!
Message 1 of 7
mdgm-ntgr
NETGEAR Employee Retired

Re: Web Access Logger / Webalizer-like for NAS-Duo V2?

So 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.
Message 2 of 7
Avon_Fox
Aspirant

Re: Web Access Logger / Webalizer-like for NAS-Duo V2?

I 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.
Message 3 of 7
mdgm-ntgr
NETGEAR Employee Retired

Re: Web Access Logger / Webalizer-like for NAS-Duo V2?

Ah, 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.
Message 4 of 7
Avon_Fox
Aspirant

Re: Web Access Logger / Webalizer-like for NAS-Duo V2?

I'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.
Message 5 of 7
sphardy1
Apprentice

Re: RESOLVED: Web Access Logger / Webalizer-like for NAS-Duo

FYI - 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':

Message 6 of 7
Avon_Fox
Aspirant

Re: RESOLVED: Web Access Logger / Webalizer-like for NAS-Duo

Cheers 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.
Message 7 of 7
Discussion stats
  • 6 replies
  • 4547 views
  • 0 kudos
  • 3 in conversation
Announcements