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

    $ 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
  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:
    9
    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:
    9
    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