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