• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 5.2.3
    • Audit Log
    • None

      Issue Summary

      Crowd does not fully support TimeBasedTriggeringPolicy
       

      Steps to Reproduce

      • Edit the below file -
        /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
        
      • Look for the below file -
        <property name="logFileName" value=
        
      • Update the parameter to as below -
        <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
        

      • Now, edit the below file -
        /crowd-webapp/WEB-INF/classes/log4j2.properties
        
      • Look for the below files -
        appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
        appender.crowdlog.policies.size.size=20480KB
        
      • Replace the above lines with the below and save the changes -
        appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
        appender.crowdlog.policies.time.interval=1
        appender.crowdlog.policies.time.modulate=true
        
      • Note - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
      • Start Crowd and application should come up.

      The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d {yyyy-MM-dd-HH}.1 The .1 at the end, which is never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

      Expected Results

      The Crowd logging should be like

      crowd.log.%d\{yyyy-MM-dd-HH}
      

      Actual Results

      The current Crowd log is -

      Crowd.log.%d{yyyy-MM-dd-HH}.1
      

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available

            [CWD-6212] Crowd does not fully support TimeBasedTriggeringPolicy

            Avik H made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 930135 ]
            SET Analytics Bot made changes -
            UIS New: 1
            Rostyslav Shurukhin (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Gathering Impact [ 12072 ]
            SET Analytics Bot made changes -
            Support reference count New: 1
            Avik H made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 887447 ]
            Avik H made changes -
            Description Original: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             
            The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            New: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.

            The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which is never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            !screenshot-1.png|thumbnail!
            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            Avik H made changes -
            Attachment New: screenshot-1.png [ 454635 ]
            Avik H made changes -
            Description Original: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             
            *The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.*

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            New: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             
            The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            Avik H made changes -
            Description Original: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             #*The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            New: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             
            *The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.*

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            Avik H made changes -
            Description Original: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             # Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             # Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             # Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             # Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             # Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             # Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             # Note - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             # Start Crowd and application should come up.
             # The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available
            New: h3. Issue Summary

            Crowd does not fully support TimeBasedTriggeringPolicy
             
            h3. Steps to Reproduce
             * Edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/applicationContext-CrowdBootstrap.xml
            {code}

             * Look for the below file -
            {code:java}
            <property name="logFileName" value=
            {code}

             * Update the parameter to as below -
            {code:java}
            <property name="logFileName" value="atlassian-crowd.log.%d{yyyy-MM-dd-HH}"/>
            {code}
            !image-2024-03-28-09-45-15-271.png|thumbnail!

             * Now, edit the below file -
            {code:java}
            /crowd-webapp/WEB-INF/classes/log4j2.properties
            {code}

             * Look for the below files -
            {code:java}
            appender.crowdlog.policies.size.type=SizeBasedTriggeringPolicy
            appender.crowdlog.policies.size.size=20480KB
            {code}

             * Replace the above lines with the below and save the changes -
            {code:java}
            appender.crowdlog.policies.time.type=TimeBasedTriggeringPolicy
            appender.crowdlog.policies.time.interval=1
            appender.crowdlog.policies.time.modulate=true
            {code}

             * *Note* - appender.crowdlog.policies.time.interval=1 defines a number of hrs, so if you want to rotate the logs every 01 hrs set the value to 1 and if you want to rotate every 06 hrs then set the value to 6
             * Start Crowd and application should come up.
             #*The problem is that in the logs you will see the log pattern as atlassian-crowd.log.%d \{yyyy-MM-dd-HH}.1 The *.1* at the end, which was never defined in any conf file and it seems like default behaviour as it just adds it to the file with no pattern which is not expected.

            h3. Expected Results

            The Crowd logging should be like
            {code:java}
            crowd.log.%d\{yyyy-MM-dd-HH}
            {code}
            h3. Actual Results

            The current Crowd log is -
            {code:java}
            Crowd.log.%d{yyyy-MM-dd-HH}.1
            {code}
            h3. Workaround

            Currently, there is no known workaround for this behaviour. A workaround will be added here when available

              Unassigned Unassigned
              06f5aa6422ad Avik H
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated: