Ahmet Ekrem SABAN
asked on
How to expand mobile operating system statistics in AwStats?
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.)
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.)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
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\ww wroot 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.
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\ww
Currently, I have to continue with another task, but will hopefully return in ten days back to this issue.
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...
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...
ASKER
I tried with AwStats 7.3 that enlists iOS automatically. Although the entry
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
# Linux family
'linux(.*)android',
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"
Because Android is LINUX (without GNU), and the firs in general is server OS, sometimes desktop, not counting billion of mobile devices....
ASKER
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.
He must know the way to distinguish full-hd android TV from full-hd nexus phone.
ASKER