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

Need to change "splunk-logging" function to collect CloudFront data. #9

Open
odorusatoshi opened this issue Nov 12, 2019 · 0 comments

Comments

@odorusatoshi
Copy link

I try to collect CloudFront data by splunk-logging function on Lambda .
It seems AWS can not recognize parameter of "Environment variables" like below screenshot.
スクリーンショット 2019-11-12 14 10 25

Hence I change some code on "splunk-logging" and work.
But we need check and modify appropriate code.

indes.js_kai.txt

What I've changing below.

  • Use HEC URL & token instead of "Environment variables"
    const SPLUNK_HEC_URL = "https://SPLUNK FQDN/services/collector/event";
    const SPLUNK_HEC_TOKEN = "SPLUNK HEC TOKEN";
  • To get response
    const response = event.Records[0].cf.response;
    callback(null, response);
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

1 participant