Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15963

Historical retention files ( csv ) were not deleted

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.1, 6.5.2.2, 6.5.2.3
    • Fix Version/s: None
    • Component/s: audit logging
    • Labels:
    • Sprint:
      AM Sustaining Sprint 79, AM Sustaining Sprint 80
    • Story Points:
      3
    • Support Ticket IDs:

      Description

      How to reproduce the issue

      Followed the instructions as in

      7.2.2.2. Configuring CSV Audit Event Handlers

      For a quick test, i set my file size limit to 1MB ie 1000000 bytes

      Maximum Number of Historical Files , i set to 2

      Run a load test ( while loop ) with authentication endpoint against AM.
      Expected behaviour
      Historical csv files to be remained at 2 
      
      Current behaviour
      The older files are not purged 
      
      -rw-r----- 1 iplanet iplanet  391495 Feb 20 10:39 access.csv
      -rw-r----- 1 iplanet iplanet 1001981 Feb 20 10:32 access.csv-2020.02.20-10.32.03
      -rw-r----- 1 iplanet iplanet 1001384 Feb 20 10:35 access.csv-2020.02.20-10.35.04
      -rw-r----- 1 iplanet iplanet 1000754 Feb 20 10:38 access.csv-2020.02.20-10.38.23
      -rw-r----- 1 iplanet iplanet       0 Feb 20 10:27 activity.audit.json
      -rw-r----- 1 iplanet iplanet   49217 Feb 20 10:39 activity.csv
      -rw-r----- 1 iplanet iplanet 1000363 Feb 20 10:34 activity.csv-2020.02.20-10.34.51
      -rw-r----- 1 iplanet iplanet 1000676 Feb 20 10:39 activity.csv-2020.02.20-10.39.34
      -rw-r----- 1 iplanet iplanet       0 Feb 20 10:27 authentication.audit.json
      -rw-r----- 1 iplanet iplanet   47725 Feb 20 10:39 authentication.csv
      -rw-r----- 1 iplanet iplanet 1000818 Feb 20 10:31 authentication.csv-2020.02.20-10.31.35
      -rw-r----- 1 iplanet iplanet 1000733 Feb 20 10:34 authentication.csv-2020.02.20-10.34.08
      -rw-r----- 1 iplanet iplanet 1000718 Feb 20 10:36 authentication.csv-2020.02.20-10.36.58
      -rw-r----- 1 iplanet iplanet 1000460 Feb 20 10:39 authentication.csv-2020.02.20-10.39.33
      
      
      

      Work around

      Manually remove the excess files

      Note : External log rotation is not supported for audit logs

      and JSON audit logs are not affected by this bug

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.yarham Lawrence Yarham
                Reporter:
                sam.phua Sam Phua
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: