我正在使用 Kaa 0.10.0 并且我已经定义了日志模式并创建了一个 MongoDB 日志附加程序。我的问题是当我通过客户端上传日志记录并通过日志附加器将其保存到 MongoDB 时,可选字段(driverLicenseNo,例如)json 格式如下所示。
{
"event" : {
"driverLicenseNo" : {
"string" : "310103198702092345"
}
}
}
或者如果值为空,
{
"event" : {
"driverLicenseNo" : null
}
}
我的期望是
{
"event" : {
"driverLicenseNo" : "310103198702092345"
}
}
或者如果值为空
{
"event" : {
"driverLicenseNo" : null
}
}
是否可以设置任何配置以按预期获取 MongoDB json 格式?谢谢!
香风旗