Solved

How to expand mobile operating system statistics in AwStats?

Posted on 2015-02-17
9
470 Views
Last Modified: 2015-03-03
Hello!

I was asked to modify the existing AwStats code we have in our company so that some additional mobile operating systems that did not exist at the time the AwStats code was written should also be detected & displayed in the statistics. Although I am new to Perl, I think that there will be some file or so, where one can add OS information to be searched for.

The days after writing this question, I got throgh Perl & tried the statistics with AwStats 7.3. I see that in contrast to the old AwStats, the new one now displays also the mobile OS of Apple, iOS. Can you show me what to do (or give a link to an appropriate page) to expand the scope of AwStats operating systems? Currently, Android is missing.

Thank you in advance!

(I would like to split them in "desktop" & "mobile", but this is not so important, as it would require code changes.)
0
Comment
Question by:sae1962at
  • 5
  • 4
9 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40621699
you need to modify browsers.pm and brosers_phone.pm
It is perl code, use notepad++ to edit it.

I would suggest as first try to try old data files with new awstats version
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40627554
Thank you for your reply! I try this with our company's AwStats code and hope that it is the answer for my question.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40627617
You can try to mash together os detectors from new version in old awstats. Though better try is to clone current setup and evaluate possibility of complete upgrade and no programming.
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40635064
Thank you for your help! I am using the already existing files for the test. As I was not feeling good starting the project from the command line, I added the Perl plugin to eclipse Mars, and it run. Now, I have to see how I can add a new operating system such that it appears in the statistics.

Interestingly, I found the Android operating system (as a Linux-derivative, which I didn't know) in the list, but although there are entries in the C:\Programs\awstats-7.3\wwwroot directory in the access_log.www file, I couldn't see them in the statistics.

Currently, I have to continue with another task, but will hopefully return in ten days back to this issue.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 61

Expert Comment

by:gheist
ID: 40636085
You must upgrade to at least 7.1 for security:
https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=awstats

Rest is just small details... Why not 7.3 right away. I havnt heard you trying...
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40639603
I tried with AwStats 7.3 that enlists iOS automatically. Although the entry
# Linux family
'linux(.*)android',

Open in new window


exists in the operating_systems.pm file, I cannot see any Android accesses in the statistics, although a lot of entries exist in the log file, like

89.144.220.134 - - [16/Feb/2015:12:52:01 +0100] "GET /media/com_phocadownload/css/main/phocadownload.css HTTP/1.1" 200 3388 "https://www.ivm.at/kontakt" "Mozilla/5.0 (Linux; U; Android 2.3.3; de-at; GT-I9000 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

Open in new window

0
 
LVL 61

Expert Comment

by:gheist
ID: 40640149
Because Android is LINUX (without GNU), and the firs in general is server OS, sometimes desktop, not counting billion of mobile devices....
0
 
LVL 1

Author Comment

by:sae1962at
ID: 40641724
That's the point: perhaps, there are millions of mobile devices with hundreds of platforms, but our director wants to see the "important" ones enlisted in the screen.
0
 
LVL 61

Expert Comment

by:gheist
ID: 40642568
He must know the way to distinguish full-hd android TV from full-hd nexus phone.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now