toshihirock / node-elb-log-parser

A basic parser for ELB access logs, strongly inspired by node-clf-parser https://github.com/jfhbrook/node-clf-parser
11 stars 26 forks source link

TypeError: Cannot read property 'split' of undefined #6

Open neillturner opened 6 years ago

neillturner commented 6 years ago

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];

heyakim commented 5 years ago

I'm having this issue on my deployment. Is there a fix for this already? Thanks.

kartikeypokhriyal7000 commented 4 years ago

Was this issue fixed ? I'm still facing it

neillturner commented 4 years ago

there is a pull request TypeError: Cannot read property 'split' of undefined #6