DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Frameworks
  4. Analyzing Eclipse Update Site Traffic with AWStats

Analyzing Eclipse Update Site Traffic with AWStats

Zviki Cohen user avatar by
Zviki Cohen
·
Feb. 23, 09 · Interview
Like (0)
Save
Tweet
Share
9.02K Views

Join the DZone community and get the full member experience.

Join For Free

knowledge is power . i don't think it is necessary to explain why having some analysis of your sites' visitors is important. as a software vendor, it is crucial to understand how many people download the software from your site. if you are developing an eclipse plugin, you probably have an eclipse update site for distributing the software to your customers (whether they are paying or not). the update site is used both for new users, installing your software for the first time, and for existing users updating their software to newer versions. that means tracking downloads is somewhat different than tracking downloads from a regular web site.

the most popular tool for web site traffic analysis is google analytics . like many other tools , google analytics works in the following manner: the user views the page along with a tracking javascript on the page (also known as page tagging ). the javascript, upon loading the page, sends the information to a main server. this works great for web sites but it is completely useless for eclipse update sites. the transactions of the update sites are not done using a full web browser, so the javascript cannot execute.

the simple solution in this case is to take a different approach to tracking visitors: analyzing the server logs . the web server can keep logs of all the requests going through the server. these logs can be analyzed using a log analysis tool. the most popular tool for that is awstats .

awstats is a free, open source tool (under gpl license) for analyzing server logs. it can be set up to use a web interface for presenting reports on site visitors. setting up awstats is a fairly simple task. there are many tutorials and articles on the subject, so i won't be covering this part. so, before you continue to the next paragraph make sure you have awstats up and running.

configuring awstats for update site analytics

in its' default configuration, awstats will not present correct update site statistics. the main reason for that is the browser identity. when eclipse connects to your site, it will identify itself as a "java" agent, not as a browser. this causes awstats to assume your client is a bot or a worm and ignore its' traffic. another reason is filtering out xml files from the analysis. this is done by default. however, the update site is mostly jars and xmls, so that's really missing its' purpose.

to change the settings, open your awstats configuration file (there's a separate file for each site you analyze) and make the following modifications:

  • look for a setting called levelforrobotsdetection, the default is 2, change it to 0. this will ensure the requests from the java clients will not be detected as robots.
  • look for a setting called notpagelist. you will find the list of ignored file types. remove xml from that list. this will log the access to files like site.xml and content.xml

that's it. if you already executed the analysis before the configuration changes, simply delete your data files and awstats will reanalyze your log files.

getting the most from the awstats report

the basic report of awstats is useful enough. it is in the monthly level, but you can break it down to the daily or hourly level using the databasebreak=hour or databasebreak=day option. for example, if you are running awstats directly from your browser (as opposed to generating the reports from the command line) you will need to add the following to your url: &databasebreak=day&day=23 (where 23 is the day number, no way to select it other than write it in the url). the report is the same as the monthly report, except that the data shown belongs to a specific day. this option is still "experimental", but it seems to work just fine. you can read more about it in the awstats faq .

i found two sub-reports particularly useful:

the "unknown os" report will show the java versions being used by your users. unfortunately, this is not a summary report, just a report of the last x visits.
unknown-os-report

the full list of urls will show all the jars that were downloaded.
full-url-report

to conclude, i should point out that i'm not an expert in web analytics. i just needed a simple solution and awstats seems to do the job. it is not perfect, but it is ok. i will be happy to learn about other tools you might be using for that purpose. i will continue to update on my awstats experience and any other solutions i might encounter for that purpose.

from http://blog.zvikico.com/

Eclipse

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Use Golang for Data Processing With Amazon Kinesis and AWS Lambda
  • [DZone Survey] Share Your Expertise and Take our 2023 Web, Mobile, and Low-Code Apps Survey
  • Building a RESTful API With AWS Lambda and Express
  • Spring Cloud

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: