[英]New field in ELK stack - logstash
I am creating new field and copy data from existing one with:我正在创建新字段并从现有字段复制数据:
mutate {
add_field => { "NewField" => "%{[Old][Field]}" }
}
The problem that I am having is, prior this copy operation the OldField looks well presented in kibana in this way:我遇到的问题是,在此复制操作之前,OldField 以这种方式在 kibana 中很好地呈现:
{
"message": "1"
}
{
"message": "2"
}
{
"message": "3"
}
{
"message": "4"
}
After copying the NewField represents the data in one line:复制后NewField代表一行数据:
{message=1},{message=2},{message=3},{message=4}
Is there a way to keep the original formatting?有没有办法保留原始格式? The old field is a JSON array, the new field is text.
旧字段是 JSON 数组,新字段是文本。
Thanks!谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.