Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
neillturner opened this issue Aug 3, 2018 · 3 comments
Open

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

neillturner opened this issue Aug 3, 2018 · 3 comments

Comments

@neillturner
Copy link

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

neillturner pushed a commit to neillturner/node-elb-log-parser that referenced this issue Aug 3, 2018
neillturner pushed a commit to neillturner/node-elb-log-parser that referenced this issue Aug 3, 2018
@heyakim
Copy link

heyakim commented Jun 20, 2019

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

@kartikeypokhriyal7000
Copy link

Was this issue fixed ? I'm still facing it

@neillturner
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants