Reporting only sub-directory level access

Avatar
  • updated
  • Answered
Hello everyone.
I want to know the number of accesses grouped at the sub-directory level.
For example, if there are some access to the following URI,

http://localhost/AAA/file1.html
http://localhost/AAA/file2.html
http://localhost/AAA/YYY/file3.html
http://localhost/BBB/file1.html
http://localhost/BBB/file2.html
http://localhost/BBB/XXX/file3.html

I want to know only the number of access for "AAA" and "BBB" sub-directory level.

Would you advise me on how to do this?
Avatar
Michael
Do you wish to get statistics on first-level directories only? Does the report need to show 3 hits for /AAA/ and 3 hits for /BBB/ if there were accesses like in the example you provided?
Avatar
Takeshi Terui
Hello Michael,
>Do you wish to get statistics on first-level directories only?
Yes! That is right. My web services are deployed on each first-level directories as an attached figure.

If I need only a detail statics of AAA, I configured an including filter as like "/AAA/*". However if I need another service's statics, I need to run WebLog many time. Actually, I need to know only statics of each service, and want to compare the access number among services.

Avatar
Michael
You can create a new custom table (requires the Professional or Enterprise edition of the program). The simplest way to do it is the following:

1. Open Options > Report > Tables.
2. Select the Access Statistics > Most Requested Directories table.
3. Click the More > Click Table command.
4. Specify another table name, e.g. Top-Level Directories, on the General tab.
5. Open the Data tab and click the Custom button to the right of the "Main data" combo box. Click "Use modification rules" here and specify the following rule:

/(.*?)/ ~= \1/

After it you can close all the dialog (by clicking OK) and re-generate report. If the table isn't generated, you should check if it is selected in Options > Report > Contents, or Profile Properties > Report > Custom report contents.
Avatar
Takeshi Terui
Hello Michael,
Many thanks for your advice. I configured a new custom table for 1st level domain's statics. I got the one! And also, we could confirm that time-series from the report generated to Web server.