lujiajing1126 opened a new issue #5356:
URL: https://github.com/apache/skywalking/issues/5356


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [x] Feature or performance improvement
   ___
   ## Requirement or improvement
   
   ### Motivation:
   In our `Kubernetes` cluster, we output logs to `STDOUT` and then collect 
through `Kubernetes` log driver. And the format of logs we use is `JSON` which 
can be easily parsed by most collector agents, for example `logstash`, 
`logtail`, etc. 
   
   The critical problem of the pattern-based log format is that it is very 
difficult to parse, search and view from a structural aspect. In some edge 
cases, we have to write complex Regex to parse this log.
   
   So I think it is necessary to implement `JsonLogger` in skywalking and allow 
users to switch between `PatternLogger` and `JsonLogger`. 
   
   ### Initiative:
   
   1. Add an implementation of `JsonLogger` in `agent-core`.
   2. Allow to switch `JsonResolver` before `premain` entry is invoked.
   
   I would like to submit a PR to implement this feature.
   


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

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


Reply via email to