Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9210745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:08:49+00:00 2026-06-18T01:08:49+00:00

I just released my web application. However I’m curious about production.log’s size. It will

  • 0

I just released my web application.

However I’m curious about production.log’s size.
It will be increased forever and will need so much disk space only for that.

How can I take care of this?

What people usually do to maintain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:08:50+00:00Added an answer on June 18, 2026 at 1:08 am

    I would expect your logging framework to roll and date logs e.g. you would get logs like:

    server.log
    server.log.2013-01-29
    server.log.2013-01-28
    

    etc..

    Furthermore I would expect admins (or someone else) to set up a cron job or similar to remove or zip up (or both) old logs. Other than for long term traffic/data analysis, the logs you’re interested in are most likely todays, followed by yesterdays and perhaps last weeks. The older they are, the less interesting they may be.

    Check out logrotate which automates a lot of this.

       logrotate  is  designed to ease administration of systems that generate
       large numbers of log files.  It allows automatic rotation, compression,
       removal, and mailing of log files.  Each log file may be handled daily,
       weekly, monthly, or when it grows too large.
    

    You may also want to take the opportunity to remove or tidy logs when you release new versions of your application if, say, the new version creates log info radically different from the old versions, resulting in more difficult or perhaps irrelevant analysis.

    Finally I would run some disk space monitoring in order to alert if disk space is running low. Regardless of the above, you may find that your application logs excessively in error conditions, or perhaps a new version logs more than expected. The last thing you want is for your application to grind to a halt if your log files fill up the disk (for this reason logs are often sent to a different disk partition – /var perhaps – so if that fills up it won’t affect other processes)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I released a small asp.net beta web application which allows internal staff to
I am just starting my first MVC Web Application and have noticed that I
I need to build a web service application for my client, using the following
I am developing a new web application, but just found out I am required
I have just re-implemented an ASP.NET web application that uses NHibernate to use a
I just inherited a very old ASP.NET 2.0 web application. In the application it
We are programming a web application (not 'just' a web site, but functionality-wise a
So I've just released my first module for nodejs . Things that I did:
Last Thursday we just released a new version of our website. The big change
jQuery Mobile 1.1.0 Final was just released and promises: True fixed toolbars: Lightweight, CSS-based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.