Skip to content

Instantly share code, notes, and snippets.

@libbymo
libbymo / CloudwatchLogsToElasticSearch.ts
Created March 5, 2025 17:57 — forked from hendrixroa/CloudwatchLogsToElasticSearch.ts
AWS Lambda function to stream cloudwatch logs to elasticsearch with some modification to accept multiples indices
const https = require('https');
const zlib = require('zlib');
const crypto = require('crypto');
const FunctionShield = require('@puresec/function-shield');
const ENV = process.env;
const endpoint = ENV.es_endpoint;
FunctionShield.configure(
{