vy commented on issue #2624:
URL: 
https://github.com/apache/logging-log4j2/issues/2624#issuecomment-2137645130

   > is there any way in JsonTemplateLayout where i can filtered json from the 
string message field along with whole json log
   
   @pSinghDelaplex, I am not able to follow what you mean. You share the 
following JSON-formatted log event:
   
   ```
   {"@timestamp": "2024-05-26T10:52:56.100Z","ecs.version": 
"1.2.0","log.level": "INFO", "message": "Service 1 -> 
127.0.0.1:\r\n{\"appId\":\"1234\", \"action\":\"Payment 
Received\"}","process.thread.name": "http-nio-0.0.0.0-59078-exec-1", 
"log.logger": "com.example"}
   ```
   
   Here, the `message` field contains the following value:
   
   ```
   Service 1 -> 127.0.0.1:\r\n{\"appId\":\"1234\", \"action\":\"Payment 
Received\"}
   ```
   
   This is **not** a valid JSON at all.
   
   **Can you give an example of how the formatted log event should look like?**


-- 
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