pSinghDelaplex commented on issue #2624:
URL:
https://github.com/apache/logging-log4j2/issues/2624#issuecomment-2137259187
log4j2-jsontemplatelayout-log-message-field-as-json
In my log I get this
```
{
"@timestamp": "2024-05-26T10:52:56.100Z","ecs.version": "1.2.0","log.level":
"INFO","message": "{appId=1234, action=Payment
Received}","process.thread.name": "main", "log.logger": "INFO"
}
```
But I want the message to be in JSON, so would like:
```
{
"@timestamp": "2024-05-26T10:52:56.100Z",
"ecs.version": "1.2.0",
"log.level": "INFO",
"message": {
"appId": "1234",
"action": "Payment Received"
},
"process.thread.name": "main",
"log.logger": "INFO"
}
```
--
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]