PassiveIncomeMachine opened a new issue, #2516:
URL: https://github.com/apache/logging-log4j2/issues/2516

   ## Constructor ERROR Could not create plugin of type class 
org.apache.logging.log4j.layout.template.json.JsonTemplateLayout for element 
JsonTemplateLayout: java.lang.OutOfMemoryError: Java heap space 
java.lang.OutOfMemoryError: Java heap space
   
   Here is what I have configured.
   
   ```
   <Console name="CONSOLE-OUTPUT" target="SYSTEM_OUT">
       <JsonTemplateLayout eventTemplateUri="classpath:Layout.json" 
maxStringLength=“10000000”>
           <EventTemplateAdditionalField key="appName" value="AA" />
           <EventTemplateAdditionalField key="appenderName" value="OUTPUT" />
           <EventTemplateAdditionalField key="consoleLogIdentifier" 
value="LOG-IDENTIFIER"/>
       </JsonTemplateLayout>
       <Filters>
           <RegexFilter regex="(?s).*AvailabilityReport.*"
               useRawMsg="true" onMatch="ACCEPT" onMismatch="NEUTRAL" />
           <RegexFilter regex="(?s).*OccupancyReport.*"
               useRawMsg="true" onMatch="ACCEPT" onMismatch="DENY" />
       </Filters>
   </Console>
   ```
   
   ## Configuration
   
   **Version:** 2.23.1
   
   **Operating system:** Red Hat Enterprise Linux release 8.4 (Ootpa)
   
   **JDK:** openjdk version "11.0.13" 2021-10-19 LTS
   
   ## Logs
   
   ```
   2024-04-23 12:00:26,623 Constructor ERROR Could not create plugin of type 
class org.apache.logging.log4j.layout.template.json.JsonTemplateLayout for 
element JsonTemplateLayout: java.lang.OutOfMemoryError: Java heap space 
java.lang.OutOfMemoryError: Java heap space
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to