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.
Hence I change some code on "splunk-logging" and work.
But we need check and modify appropriate code.
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.
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.
const SPLUNK_HEC_URL = "https://SPLUNK FQDN/services/collector/event";
const SPLUNK_HEC_TOKEN = "SPLUNK HEC TOKEN";
const response = event.Records[0].cf.response;
callback(null, response);