vector icon indicating copy to clipboard operation
vector copied to clipboard

New source: lambda runtime logs

Open ctaintor opened this issue 4 years ago • 7 comments

Use-cases

Part of the value of Vector that I see is removing unnecessary components from the log stream. AWS recently launched realtime lambda logs as an extension and this can remove the need for things like Kinesis Firehose.

Attempted Solutions

Today the only solution is using Kinesis Firehose for getting logs out of Lambda.

Proposal

Add a source for lambda runtime logs to make it simpler for people to get their logs into Vector

References

ctaintor avatar Dec 02 '20 09:12 ctaintor

Great idea! Thanks for opening.

binarylogic avatar Dec 02 '20 15:12 binarylogic

@binarylogic any updates on that? 🤔

andreyvital avatar Jul 29 '21 19:07 andreyvital

I was actually looking for something like that, I'm already using Vector as an agent on my EC2 instances, but now I have some Lambda functions that I'd like to be able to control where their logs are being sent. I've got some free time on my hand for the next couple of days, I can start looking into it.

wperron avatar Oct 20 '21 19:10 wperron

@wperron how did you go with looking into making vector work as a lambda extension? I've worked on CW subscription to kinesis where vector picks it up and cross account kinesis has been a pain. I much prefer the lambda extension which allows me to add my own meta-data/tagging where CW doesn't.

Phizicks avatar Mar 13 '22 05:03 Phizicks

Honestly I haven't had time to look into it much. I started investigating a bit but then life happened and completely forgot about this. I might take another look though, it's an interesting issue.

wperron avatar Mar 14 '22 11:03 wperron

damn life, always gets in the way. I almost divorced mine but doctor said it was a bad idea.

Phizicks avatar Mar 15 '22 07:03 Phizicks

Noting a user did do a POC of this:

I'm working on a POC with Vector running it within AWS Lambda. I managed to run Vector as an extension using theAWS Lambda Extension API.

https://github.com/vectordotdev/vector/issues/12833

jszwedko avatar May 24 '22 14:05 jszwedko

Seems like Lambda's new Telemetry API might make this more effective.

chriszs avatar Dec 11 '22 18:12 chriszs

Yup, I'd amend this issue to use the Telemetry API.

Especially interested in this as this issue plus #1444 could hopefully the replace the less performant otel layer provided by AWS.

RichiCoder1 avatar Mar 02 '23 23:03 RichiCoder1

hi folks, any chance there is a poc for this ? there is an example for doing this here https://github.com/megaproaktiv/Lambda-Telemetry-API-Loki/tree/main/loki_extension

sandys avatar Jul 27 '23 16:07 sandys