this is my message which is coming for every event. How can i collect only one type data (which is string) and give it a value of 1, and also at the same time insert to rethinkdb as a value 1, and also update it's total value sample data ---- take only "event":"click" as a integer value 1 and insert into database as 1 and also update total value like total_click
{
"message_ver": "2011-03-17",
"data":{
"chan":"chan-552a4",
"device":"mob",
"event":"click",
"type":"ad",
"ip":"95.195.139.177",
"user_agent":"Mozilla/5.0 [FB_IAB/FB4A;FBAV/31.0.0.20.13;]",
"content_version":"ver-5534bb69cbeb1",
"referrer":"http://vlt.com",
"r_type":"ad"
}
}