Skip to content

Commit 58df0c9

Browse files
author
kkuzmin
authored
Merge pull request #46 from alertlogic/fix_status
Use correct stream type
2 parents 90a5e2b + 98a9cd7 commit 58df0c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

al_aws_collector.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ class AlAwsCollector {
142142
}
143143
}
144144

145-
prepareErrorStatus(errorString, streamName = 'error', collectionType) {
145+
prepareErrorStatus(errorString, streamName = 'none', collectionType) {
146146
let cType = collectionType ? collectionType : this._ingestType;
147147
return {
148148
stream_name: streamName,
149149
status_type: 'error',
150-
stream_type: 'collector',
150+
stream_type: 'status',
151151
message_type: 'collector_status',
152152
host_uuid: this._collectorId,
153153
data: [
@@ -373,7 +373,7 @@ class AlAwsCollector {
373373
if(!status){
374374
return callback(null);
375375
} else {
376-
zlib.deflate(JSON.stringify([status]), function(compressionErr, compressed) {
376+
zlib.deflate(JSON.stringify([status]), (compressionErr, compressed) => {
377377
if (compressionErr) {
378378
return callback(compressionErr);
379379
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alertlogic/al-aws-collector-js",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"license": "MIT",
55
"description": "Alert Logic AWS Collector Common Library",
66
"repository": {

0 commit comments

Comments
 (0)