Skip to content

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

@odorusatoshi

Description

@odorusatoshi

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions