example CouchDB views
[pxelator] / couchdb / syslog / views / timeline / map.js
diff --git a/couchdb/syslog/views/timeline/map.js b/couchdb/syslog/views/timeline/map.js
new file mode 100644 (file)
index 0000000..d511e37
--- /dev/null
@@ -0,0 +1,4 @@
+function(doc) {
+  if ( doc.package == 'syslogd' )
+  emit(doc.time, doc);
+}
\ No newline at end of file