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

OpenAM unable to rotate log files when configured based on maxsize

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.5.2.2
    • Fix Version/s: None
    • Component/s: debug logging
    • Labels:
    • Rank:
      1|hzzelz:
    • Sprint:
      AM Sustaining Sprint 69
    • Story Points:
      3
    • Support Ticket IDs:

      Description

      Bug description

      Rotate Debug logs are not working as expected, after setting the debugconfig.properties, for example:

      org.forgerock.openam.debug.rotation.maxsize=20
      org.forgerock.openam.debug.suffix=-MM.dd.yyyy-HH.mm_ss.SSS

       

      How to reproduce the issue

       

      1. On a working env were debug logs are already there
      2. Set debugconfig.properties to: 
        org.forgerock.openam.debug.rotation.maxsize=20
        org.forgerock.openam.debug.suffix=-MM.dd.yyyy-HH.mm_ss.SSS
      3. As article states (https://backstage.forgerock.com/docs/am/6.5/maintenance-guide/#log-debug-selective-capture ) Changes to properties in the debugconfig.properties file take effect immediately. Even if service is been restarted, there is no change.
      Expected behaviour
      debug logs with suffix should start to rotate according to the debugconfig.properties max size and suffix settings
      Current behaviour
      There are no rotating files according to size or suffix settings.

      Work around

      When normal debug files are already produced and the size of them are bigger (in size of what the debugconfig.properties stated ex. 20MB) then if flash one of them example:    cat /dev/null > CoreSystem, logs are start been created according to debugconfig.properties.     

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              george.nikolaidis George Nikolaidis
            • Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated: