Create a filter that reads the raw logs data and produces a serializable output

can be run like 
rawlogsFilter.js logsFile.logs | load
or cat logsFile.logs | rawlogsFilter.js | load

where load is a program to load raw log data that has been filtered by rawlogsFilter.js.

Yes, all those questions :-)