SumoLogic / sumologic-aws-lambda

A collection of lambda functions to collect data from Cloudwatch, Kinesis, VPC Flow logs, S3, security-hub and AWS Inspector
Other
151 stars 135 forks source link

Cloudwatchlogs fix hostname #151

Open mrMemfis opened 2 years ago

mrMemfis commented 2 years ago

Before: Host: /aws/elasticbeanstalk/var/log/httpd/access_log Name: i-02cd231ee30150f88 Category: apache

After: Host: i-02cd231ee30150f88 Name: /aws/elasticbeanstalk/var/log/httpd/access_log Category: apache

himanshu219 commented 2 years ago

seems sourcename is the 0th index element as per the following code https://github.com/SumoLogic/sumologic-aws-lambda/blob/f36b6d3422b224dd95cf4b9bcdf256a85fd35a0c/cloudwatchlogs/cloudwatchlogs_lambda.js#L81

Are you seeing incorrect metadata in sumo?

mrMemfis commented 2 years ago

Maybe that's just my problem... But I see the source name in the first place.