logdna / logdna-cloudwatch

AWS Lambda for logging from CloudWatch into LogDNA
MIT License
12 stars 19 forks source link

if log_raw_event=true and do not have LOGDNA_HOSTNAME - this line has problems. #24

Closed istemi closed 4 years ago

istemi commented 4 years ago

https://github.com/logdna/logdna-cloudwatch/blob/834944cb556287f70966df28dde0ef2e5228fd34/index.js#L89

I have replaced with the following line for a temporary fix.

const hostname = config.hostname || payload[0].meta.log.group;
smusali commented 4 years ago

@istemi, thanks for reporting the bug!

I will fix and release the patch version today!

smusali commented 4 years ago

@istemi, it's been updated and released in v2.2.1 - thanks again for reporting!