Skip to content

Commit

Permalink
use ECS standard log keys (#4185)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyhappydan authored Aug 22, 2023
1 parent 6937496 commit 35211c0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class JsonLayout extends LayoutBase[ILoggingEvent] {
Json
.fromFields(
Map(
"message" := event.getMessage,
"level" := event.getLevel.toString,
"time" := event.getInstant,
"logger" := event.getLoggerName
"message" := event.getMessage,
"log.level" := event.getLevel.toString,
"@timestamp" := event.getInstant,
"log.logger" := event.getLoggerName
) ++ stackTraceField
)
.noSpaces + '\n'
Expand Down

0 comments on commit 35211c0

Please sign in to comment.