假设我在以下索引中有一个现有文档
访问者-20150412
{
"_index" : "visitors-20150412",
"_type" : "visitor",
"_id" : "62df20c58f008fea",
"_source" : {
"ID" : "62df20c58f008fea",
"ip" : "123.456.789.0",
"referrer" : "google",
"pages" : []
}
然后我有一个"页面的记录"访问者访问了我想要logstash阅读并添加到"页面"阵列。页面文档可能如下所示:
{
"visitorID" : "62df20c58f008fea",
"url" : "http://www.example.com/whatever",
"title" : "Page Title"
}
如何设置logstash配置文件,以便它附加这个"页面"使用_id" 62df20c58f008fea"到原始访问者文档?