collect amt event logs
[pxelator] / couchdb / amt / views / ip,timestamp-event / map.js
diff --git a/couchdb/amt/views/ip,timestamp-event/map.js b/couchdb/amt/views/ip,timestamp-event/map.js
new file mode 100644 (file)
index 0000000..b37f799
--- /dev/null
@@ -0,0 +1,6 @@
+function(doc) {
+  if ( doc.package.name == 'amt' && doc.EventRecords )
+   doc.EventRecords.EventLogRecord.forEach( function(e) {
+     emit([doc.ip,e.TimeStamp], e);
+   });
+}
\ No newline at end of file