From 98a9cd73fd02def19be45f84861599b9f3d6022b Mon Sep 17 00:00:00 2001 From: Konstantin Kuzmin Date: Wed, 18 Mar 2020 13:28:24 +0000 Subject: [PATCH] Use correct stream type --- al_aws_collector.js | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/al_aws_collector.js b/al_aws_collector.js index ede121f..d480d13 100644 --- a/al_aws_collector.js +++ b/al_aws_collector.js @@ -142,12 +142,12 @@ class AlAwsCollector { } } - prepareErrorStatus(errorString, streamName = 'error', collectionType) { + prepareErrorStatus(errorString, streamName = 'none', collectionType) { let cType = collectionType ? collectionType : this._ingestType; return { stream_name: streamName, status_type: 'error', - stream_type: 'collector', + stream_type: 'status', message_type: 'collector_status', host_uuid: this._collectorId, data: [ @@ -373,7 +373,7 @@ class AlAwsCollector { if(!status){ return callback(null); } else { - zlib.deflate(JSON.stringify([status]), function(compressionErr, compressed) { + zlib.deflate(JSON.stringify([status]), (compressionErr, compressed) => { if (compressionErr) { return callback(compressionErr); } else { diff --git a/package.json b/package.json index 92689ba..e6eeb54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alertlogic/al-aws-collector-js", - "version": "2.0.9", + "version": "2.0.10", "license": "MIT", "description": "Alert Logic AWS Collector Common Library", "repository": {