1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Persistent lossy Apache logs

Discussion in 'Apache' started by tirsys, Nov 5, 2019.

  1. #1
    Hi to everyone,
    why Apache only keep random logs? It is a persistent log loss! I run today
    SEMrush
    $ zcat -f /var/log/apache2/access.log.* |wc -l
    8745

    I run the same command tomorrow maybe I get less! Since Sept 2018 till Oct 2019 according to backups I have over 200k hits. Where are the missing?

    Is this normal?
    Cheers!
     
    tirsys, Nov 5, 2019 IP
    SEMrush
  2. tirsys

    tirsys Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    today

    $ zcat -f /var/log/apache2/access.log.* |wc -l
    6675
     
    tirsys, Nov 8, 2019 IP
  3. tirsys

    tirsys Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    zcat -f /var/log/apache2/access.log.* |wc -l
    13302
    ...some days ago was over 16000. BOH!
     
    tirsys, Dec 9, 2019 IP
  4. tirsys

    tirsys Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    today

    zcat -f /var/log/apache2/access.log.* |wc -l
    8281
     
    tirsys, Dec 18, 2019 IP
  5. tirsys

    tirsys Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #5
    Anyone any explanation on this wird behavour?
     
    tirsys, Dec 18, 2019 IP
  6. tuxandrew

    tuxandrew Active Member

    Messages:
    63
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    68
    #6
    You may need to check and ensure that any log rotation configuration for Apache causing the logs to be truncated on a regular basis.
     
    tuxandrew, Dec 22, 2019 IP
  7. tirsys

    tirsys Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #7
    Thanks so much! I am going to check it anyway Apache is running on standard configuration.
     
    tirsys, Dec 23, 2019 IP
  8. tuxandrew

    tuxandrew Active Member

    Messages:
    63
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    68
    #8
    Let me know if any changes persist with the log rotation configuration so that I can assist you in abetter way.
     
    tuxandrew, Dec 23, 2019 IP