Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Connected users table is empty.

Reply to Post Add a New Topic
UserPost

1:05 pm
May 30, 2014


patelin

Madrid, Spain

New Member

posts 2

Hi,

I am using awstats with Apache within XAMPP.

 

I am just trying to get the URLs that contain 'mantis'.

A sample of the access.log file:

::1 – - [11/Dec/2012:13:13:34 +0100] "GET /mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1 HTTP/1.1" 200 1591 "http://localhost/mantis/login_page.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
::1 – - [11/Dec/2012:13:13:34 +0100] "GET /mantis/images/caserlogo.png HTTP/1.1" 404 1498 "http://localhost/mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
::1 – - [11/Dec/2012:13:13:41 +0100] "POST /mantis/login.php HTTP/1.1" 302 26 "http://localhost/mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
::1 – - [11/Dec/2012:13:13:42 +0100] "GET /mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1 HTTP/1.1" 200 1591 "http://localhost/mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
::1 – - [11/Dec/2012:13:13:42 +0100] "GET /mantis/images/caserlogo.png HTTP/1.1" 404 1498 "http://localhost/mantis/login_page.php?return=index.php&error=1&username=david&perm_login=0&secure_session=1" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"
::1 – - [11/Dec/2012:13:13:51 +0100] "GET /mantis HTTP/1.1" 301 346 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"

 

I added an extra section:

ExtraSectionName1="Mantis Connected Users"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,\/mantis\/"
ExtraSectionFirstColumnTitle1="User"
ExtraSectionFirstColumnValues1="URL, .*"
ExtraSectionFirstColumnFormat1="%s"
ExtraSectionStatTypes1=PHL
ExtraSectionAddAverageRow1=0
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20
MinHitExtra1=1

But the resulting table is empty.

Any ideas why?

Thx
Confused

1:21 pm
May 30, 2014


Jean-Luc

Admin

posts 1125

Hi,

Try with capturing parentheses in ExtraSectionFirstColumnValues1:

ExtraSectionFirstColumnValues1="URL,^(.*)$"

1:30 pm
May 30, 2014


patelin

Madrid, Spain

New Member

posts 2

It worked!

 

What exactly do the ^ and $ do? Why did they make it work?

Thx a lot.Laugh

1:42 pm
May 30, 2014


Jean-Luc

Admin

posts 1125

The parentheses made it work.

The ^ and the $ are not necessary here:

  • ^ means "start at the first character"
  • $ means "go to the last character"

Not really needed here, as all URL characters will be captured anyway.

Reply to Post

Reply to Topic:
Connected users table is empty.

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
6 + 8
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
19 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2712

Membership:

There are 257 Members
There have been 305 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)