Apache2 [SOLVED]: How many visits to my site on digitalocean?

Apache2 [SOLVED]: How many visits to my site on digitalocean?

Home Forums Apache2 Apache2 [SOLVED]: How many visits to my site on digitalocean?

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36895

    Anonymous

    QuestionQuestion

    It is only html. i deployed with apache.

    i do vn stat

    caner@ubuntu:~$ vnstat
    Database updated: Sun Dec 24 01:56:25 2017
    
       eth0 since 12/24/2017
    
              rx:  0 KiB      tx:  2 KiB      total:  2 KiB
    
       monthly
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
           Dec '17         0 KiB |       2 KiB |       2 KiB |    0.00 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated        --     |      --     |      --     |
    
       daily
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
         12/24/2017        0 KiB |       2 KiB |       2 KiB |    0.00 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated        --     |      --     |      --     |
    

    it shoews this. what does this mean, 1 click?

    and why time is 24 december?i just ran this vnstat command

        caner@ubuntu:~$ date
    Tue Dec 26 21:38:06 UTC 2017
    

    i went as root

    root@ubuntu-01:/var/log/apache2# ls
    

    access.log access.log.1 access.log.2.gz error.log error.log.1 error.log.2.gz other_vhosts_access.log

    other_vhosts_access.log is empty.

    and access.log has newest date while access.log.1 and access.log.2gz has older date?

    for exampla latest in access.log is

    178.x2.220.63 - - [26/Dec/2017:19:59:10 +0000] "GET /audio/bryan_adamsmp3 HTTP/1.1" 206 789160 "http://xxxx.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
    

    so does this mean someone visited

    #36896

    Anonymous

    Accepted AnswerAnswer

    First of all, this can not be translated into hits directly. The data usage will vary, depending on content. Photos and videos can consume megabytes per visitor, whilst text consumes very little bandwidth.

    For the number of visitors, you should look at your logfiles, typically /var/log/apache2/access.log – or install a tracker like Google Analytics, which will give you improved stats.

    The reason it says eth0 since 12/24/2017 is that this is the use since that date (tracking started then probably). It seems that on the 25. and 26. there was no traffic, and thus not reported.

    Furthermore, 2kiB means that you probably had zero visitors. At the most one, if it’s a really simple site.

    You have a service called logrotate that rotates logs on a daily basis. The old ones gets moved, as you see, to a new filename, and optionally compressed, being given the .gz suffix.

    Each line in the access.log generally means one hit, yes.

    Source: https://askubuntu.com/questions/989696/how-many-visits-to-my-site-on-digitalocean
    Author: vidarlo
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.