Count the top 10 ip addresses for web access and 10 ip addresses for web Access

Source: Internet
Author: User

Count the top 10 ip addresses for web access and 10 ip addresses for web Access

Cat access. log | awk '{print $0}' | sort | uniq-c | sort-nr | head-n 10


Jsp statistics of daily traffic by Ip Address

1. Create a table with the field id (number), ip (ip address), and time (the first access time of the day)
2. Obtain the IP address accessed by the user. Check whether the IP address exists on the current day in the database table. If the IP address does not exist, add it to the table. If the IP address exists, no other operations are performed.
3. Count the day's records

Which of the following is the best choice for websites with a daily access volume of IP?

It mainly refers to the number of simultaneous online users. If the number of simultaneous online users exceeds 40, it will lead to no access. The IP address is a little dangerous, resulting in a high probability of access failure. We recommend that you increase the number of connections.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.