How do I update a nested array in an existing elasticsearch document with logstash? -



How do I update a nested array in an existing elasticsearch document with logstash? -

let's have existing document in next index

visitors-20150412

{ "_index" : "visitors-20150412", "_type" : "visitor", "_id" : "62df20c58f008fea", "_source" : { "id" : "62df20c58f008fea", "ip" : "123.456.789.0", "referrer" : "google", "pages" : [] }

and have log of "pages" visitor went want logstash read through , add together "pages" array. page document might this:

{ "visitorid" : "62df20c58f008fea", "url" : "http://www.example.com/whatever", "title" : "page title" }

how setup logstash configuration file append "page" original visitors document _id "62df20c58f008fea"?

elasticsearch logstash

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -