├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE-MIT ├── README.md ├── example ├── index.js └── package.json ├── handlers ├── convertString.js ├── decodeBase64.js ├── decompressGzip.js ├── formatCloudfront.js ├── formatCloudtrail.js ├── formatCloudwatchLogs.js ├── formatConfig.js ├── formatELBv1.js ├── formatELBv2.js ├── formatS3Access.js ├── getS3Object.js ├── outputJsonLines.js ├── parseCsv.js ├── parseJson.js ├── parseSpaces.js ├── parseTabs.js ├── shipElasticsearch.js ├── shipHttp.js └── shipTcp.js ├── index.js ├── package.json └── test ├── assets ├── cloudfront.format.json ├── cloudfront.source.json ├── cloudtrail.format.json ├── cloudtrail.source.json ├── cloudwatch.data.json ├── cloudwatch.format.json ├── cloudwatch.parse.json ├── cloudwatch.source.txt ├── config.format.json ├── config.source.json ├── csv.source.txt ├── elbv1.format.json ├── elbv1.parse.json ├── elbv2.format.json ├── elbv2.parse.json ├── elbv2.source.txt ├── log.json ├── log.string.base64.txt ├── log.string.config.txt ├── log.string.txt ├── message.txt ├── message.txt.gz ├── s3access.format.json ├── s3access.parse.json ├── s3access.source.txt ├── table.json ├── table.jsonstring.txt └── tabs.source.txt ├── convertString.spec.js ├── decodeBase64.spec.js ├── decompressGzip.spec.js ├── formatCloudfront.spec.js ├── formatCloudtrail.spec.js ├── formatCloudwatchLogs.spec.js ├── formatConfig.spec.js ├── formatELBv1.spec.js ├── formatELBv2.spec.js ├── formatS3Access.spec.js ├── getS3Object.spec.js ├── index.spec.js ├── outputJsonLines.spec.js ├── parseCsv.spec.js ├── parseJson.spec.js ├── parseSpaces.spec.js ├── parseTabs.spec.js ├── shipElasticsearch.spec.js ├── shipHttp.spec.js └── shipTcp.spec.js /.eslintignore: -------------------------------------------------------------------------------- 1 | /coverage 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "extends": "google" 3 | }; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /coverage 2 | /node_modules 3 | /.nyc_output 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/README.md -------------------------------------------------------------------------------- /example/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/example/index.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/example/package.json -------------------------------------------------------------------------------- /handlers/convertString.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/convertString.js -------------------------------------------------------------------------------- /handlers/decodeBase64.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/decodeBase64.js -------------------------------------------------------------------------------- /handlers/decompressGzip.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/decompressGzip.js -------------------------------------------------------------------------------- /handlers/formatCloudfront.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatCloudfront.js -------------------------------------------------------------------------------- /handlers/formatCloudtrail.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatCloudtrail.js -------------------------------------------------------------------------------- /handlers/formatCloudwatchLogs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatCloudwatchLogs.js -------------------------------------------------------------------------------- /handlers/formatConfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatConfig.js -------------------------------------------------------------------------------- /handlers/formatELBv1.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatELBv1.js -------------------------------------------------------------------------------- /handlers/formatELBv2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatELBv2.js -------------------------------------------------------------------------------- /handlers/formatS3Access.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/formatS3Access.js -------------------------------------------------------------------------------- /handlers/getS3Object.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/getS3Object.js -------------------------------------------------------------------------------- /handlers/outputJsonLines.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/outputJsonLines.js -------------------------------------------------------------------------------- /handlers/parseCsv.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/parseCsv.js -------------------------------------------------------------------------------- /handlers/parseJson.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/parseJson.js -------------------------------------------------------------------------------- /handlers/parseSpaces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/parseSpaces.js -------------------------------------------------------------------------------- /handlers/parseTabs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/parseTabs.js -------------------------------------------------------------------------------- /handlers/shipElasticsearch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/shipElasticsearch.js -------------------------------------------------------------------------------- /handlers/shipHttp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/shipHttp.js -------------------------------------------------------------------------------- /handlers/shipTcp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/handlers/shipTcp.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/package.json -------------------------------------------------------------------------------- /test/assets/cloudfront.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudfront.format.json -------------------------------------------------------------------------------- /test/assets/cloudfront.source.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudfront.source.json -------------------------------------------------------------------------------- /test/assets/cloudtrail.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudtrail.format.json -------------------------------------------------------------------------------- /test/assets/cloudtrail.source.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudtrail.source.json -------------------------------------------------------------------------------- /test/assets/cloudwatch.data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudwatch.data.json -------------------------------------------------------------------------------- /test/assets/cloudwatch.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudwatch.format.json -------------------------------------------------------------------------------- /test/assets/cloudwatch.parse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudwatch.parse.json -------------------------------------------------------------------------------- /test/assets/cloudwatch.source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/cloudwatch.source.txt -------------------------------------------------------------------------------- /test/assets/config.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/config.format.json -------------------------------------------------------------------------------- /test/assets/config.source.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/config.source.json -------------------------------------------------------------------------------- /test/assets/csv.source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/csv.source.txt -------------------------------------------------------------------------------- /test/assets/elbv1.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/elbv1.format.json -------------------------------------------------------------------------------- /test/assets/elbv1.parse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/elbv1.parse.json -------------------------------------------------------------------------------- /test/assets/elbv2.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/elbv2.format.json -------------------------------------------------------------------------------- /test/assets/elbv2.parse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/elbv2.parse.json -------------------------------------------------------------------------------- /test/assets/elbv2.source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/elbv2.source.txt -------------------------------------------------------------------------------- /test/assets/log.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/log.json -------------------------------------------------------------------------------- /test/assets/log.string.base64.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/log.string.base64.txt -------------------------------------------------------------------------------- /test/assets/log.string.config.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/log.string.config.txt -------------------------------------------------------------------------------- /test/assets/log.string.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/log.string.txt -------------------------------------------------------------------------------- /test/assets/message.txt: -------------------------------------------------------------------------------- 1 | hi, hello! 2 | 3 | -------------------------------------------------------------------------------- /test/assets/message.txt.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/message.txt.gz -------------------------------------------------------------------------------- /test/assets/s3access.format.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/s3access.format.json -------------------------------------------------------------------------------- /test/assets/s3access.parse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/s3access.parse.json -------------------------------------------------------------------------------- /test/assets/s3access.source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/s3access.source.txt -------------------------------------------------------------------------------- /test/assets/table.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/table.json -------------------------------------------------------------------------------- /test/assets/table.jsonstring.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/table.jsonstring.txt -------------------------------------------------------------------------------- /test/assets/tabs.source.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/assets/tabs.source.txt -------------------------------------------------------------------------------- /test/convertString.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/convertString.spec.js -------------------------------------------------------------------------------- /test/decodeBase64.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/decodeBase64.spec.js -------------------------------------------------------------------------------- /test/decompressGzip.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/decompressGzip.spec.js -------------------------------------------------------------------------------- /test/formatCloudfront.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatCloudfront.spec.js -------------------------------------------------------------------------------- /test/formatCloudtrail.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatCloudtrail.spec.js -------------------------------------------------------------------------------- /test/formatCloudwatchLogs.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatCloudwatchLogs.spec.js -------------------------------------------------------------------------------- /test/formatConfig.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatConfig.spec.js -------------------------------------------------------------------------------- /test/formatELBv1.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatELBv1.spec.js -------------------------------------------------------------------------------- /test/formatELBv2.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatELBv2.spec.js -------------------------------------------------------------------------------- /test/formatS3Access.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/formatS3Access.spec.js -------------------------------------------------------------------------------- /test/getS3Object.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/getS3Object.spec.js -------------------------------------------------------------------------------- /test/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/index.spec.js -------------------------------------------------------------------------------- /test/outputJsonLines.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/outputJsonLines.spec.js -------------------------------------------------------------------------------- /test/parseCsv.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/parseCsv.spec.js -------------------------------------------------------------------------------- /test/parseJson.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/parseJson.spec.js -------------------------------------------------------------------------------- /test/parseSpaces.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/parseSpaces.spec.js -------------------------------------------------------------------------------- /test/parseTabs.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/parseTabs.spec.js -------------------------------------------------------------------------------- /test/shipElasticsearch.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/shipElasticsearch.spec.js -------------------------------------------------------------------------------- /test/shipHttp.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/shipHttp.spec.js -------------------------------------------------------------------------------- /test/shipTcp.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arithmetric/lambda-stash/HEAD/test/shipTcp.spec.js --------------------------------------------------------------------------------