TypeError: Cannot read property 'split' of undefined
at module.exports (/var/task/node_modules/elb-log-parser/index.js:69:45)
at Transform.recordStream._transform (/var/task/index.js:148:25)
at Transform._read (_stream_transform.js:186:10)
at Transform._write (_stream_transform.js:174:12)
at doWrite (_stream_writable.js:397:12)
at writeOrBuffer (_stream_writable.js:383:5)
at Transform.Writable.write (_stream_writable.js:290:11)
at LineStream.ondata (_stream_readable.js:639:20)
at emitOne (events.js:116:13)
at LineStream.emit (events.js:211:7)
happen on line:
parsed['backend_port'] = parsed.backend.split(":")[1];
getting these errors calling this npm from the code at https://github.com/prithviraju/aws-elb-logs-to-elasticsearch/blob/master/index.js
TypeError: Cannot read property 'split' of undefined at module.exports (/var/task/node_modules/elb-log-parser/index.js:69:45) at Transform.recordStream._transform (/var/task/index.js:148:25) at Transform._read (_stream_transform.js:186:10) at Transform._write (_stream_transform.js:174:12) at doWrite (_stream_writable.js:397:12) at writeOrBuffer (_stream_writable.js:383:5) at Transform.Writable.write (_stream_writable.js:290:11) at LineStream.ondata (_stream_readable.js:639:20) at emitOne (events.js:116:13) at LineStream.emit (events.js:211:7)
happen on line: parsed['backend_port'] = parsed.backend.split(":")[1];