logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Login Request Count
Author
mwtoty



Joined: 03 Apr 2018
Posts: 9
Location: US, IN

PostPosted: Sat 26 Jan '19 20:27    Post subject: Login Request Count Reply with quote

Hello,

Need help in capturing an hourly request count specific to login sessions only.

I found a command set online while doing some searches. The command returns an hourly count of requests found in the access.log.

grep "23/Jan" progolfdeal.com | cut -d[ -f2 | cut -d] -f1 | awk -F: '{print $2":00"}' | sort -n | uniq -c

I was trying to obtain an hourly request count however it returns all type of requests and the count returned is not matching a specific login count that I'm trying to obtain.

Please help with a query that can include the as well the login count specific to the URL found the access.log. I will see entries in the log pertaining to the website in the following format \mysite\logon.jsp 200 xxxx & that is what I'm trying to count as well.

Thank you.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 27 Mar '19 16:30    Post subject: Reply with quote

You can have a log for that url only

see https://superuser.com/questions/866380/how-to-log-request-for-particular-url-pattern-in-apache
Back to top


Reply to topic   Topic: Login Request Count View previous topic :: View next topic
Post new topic   Forum Index -> Apache