Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1849

Make logs rotate based on size or time

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.2
    • Fix Version/s: 2.8.3
    • Component/s: None
    • Labels:

      Description

      As Spark error and warn logs tend to grow quickly, they could take a lot of space and it could be hard to open such logs when it has grown a lot. So it would be useful to have rotating logs. Based either on size (say new log file should be created when current reaches 1 MB or similar size). There should also be a limit of files, so it won't create thousands of files. 10 seems enough. Or there could be new log file for each month and Spark could save only 5 of them and delete older months.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              speedy speedy
              Reporter:
              wroot wroot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: