• How to increase the log storage time in NGINX?

    • views 1306

    I found nginx logs here /var/log/. But I do not understand how to keep it for more than a few hours? If something is wrong I`m sorry, I`m not an expert ...

    Solutions (1)
    You can configure the rotation of logs, here: https://popsul.ru/blog/2013/01/post-42.html
    Answers (2)


    You are to configure log rotation in order to store server logs for a longer period.
    The process involves disabling of outdated or too large log files along with their archiving (for a specific period of time)

    If you server has a control panel - the rotation can be configured using panel functionality .
    If not, you are to set it up manually

    For example - the utility logrotate - https://www.opennet.ru/base/sys/logrotate_howto.txt.html

    Thank you.


We do our best for you!
Rate the article
Tell the world about it

Users (0) 0 of 5

  • In order to provide you with the best online experience this website uses personal data (cookies, IP, email, photo, name, website, etc). By using our website, you agree to our use of your personal data. More info we receive some monetary compensation from hosting companies, however, this does not influence their positions in our ratings, test results, the direction or conclusions of our reviews in any way. We use this amount to provide better services, improve our website, to cover hosting testing account fees and team salaries. Ok

  • easy


    We ban anonymous users since 2016


    We do not delete reviews for money
    We do not sell rating positions
    We make cheating attempts almost impossible


    We test the hosting thoroughly and publish professional overviews
  • Rewards for reviews