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.

+1, this would be a really good time for a filter.