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

Adding support for custom lambda scripts #10

Closed
arobie1992 opened this issue Nov 3, 2021 · 3 comments
Closed

Adding support for custom lambda scripts #10

arobie1992 opened this issue Nov 3, 2021 · 3 comments

Comments

@arobie1992
Copy link

I'm working on some aws lambdas that we want to forward logging to splunk for. The only thing is we need to customize the transform lambda function script some. I've cloned the repo and made changes that should allow this, but I don't seem to be able to push the changes. Would you be able to give me permission to create a branch and push?

@mlcooper
Copy link
Collaborator

mlcooper commented Nov 3, 2021

What do you need to change in the transform lambda function contained in this repo? If you log your Lambda function to a Cloudwatch log group, then this existing terraform module should be able to be used as-is.

You would push your changes to a branch you create in your own repo and then open a PR with that being the source and the destination being the master branch in this repo.

@arobie1992
Copy link
Author

arobie1992 commented Nov 4, 2021

I'd like to set source using the log group of the incoming event and switch to sending logs in json format among a couple other possibilities. Most of it is covered by the new lambda discussed here so I figured easies approach would be to allow swapping out of the lambda source file.

As far as the approach, makes sense. I'll fork the repo and make my changes there.

@loganm27
Copy link

loganm27 commented Jan 4, 2022

In addition to setting the source & sourcetype fields, I also have a use case to add custom (static) fields to the outgoing events. Similar to the format here:
image

These additional fields help with end user filtering.

If the current lambda could support this, that would be great, but the ability to supply a custom lambda script would also work.

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