newrelic / aws_s3_log_ingestion_lambda

AWS Lambda that sends log data from S3 to New Relic Logging
Apache License 2.0
13 stars 44 forks source link

Ignore logs that have no `message` field defined #45

Open cdancy opened 2 years ago

cdancy commented 2 years ago

Hello NewRelic devs! We have a use-case, or really a strong requirement, where we want to ignore all logs being sent to NewRelic that don't have a message field. In our case the field can be string or a json struct itself ... but if it's missing entirely we don't want to forward it along. Is there anyway or config or whatever I can take advantage of to do this?

cdancy commented 2 years ago

I'd also be happy with editing source in the proper place and repackaging just looking for some guidance on whatever solution would work is all.