forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Filebeat][AWS] Fix vpcflow pipeline exception: Cannot invoke "Object…
….getClass()" because "receiver" is null (elastic#24167) The pipeline failed with an obscure error.message: `Cannot invoke "Object.getClass()" because "receiver" is null` when the ingested message didn't contain `aws.vpcflow.*` fiels. Filebeat generates documents that lack those fields when parsing lines from a .log file (not .json) that doesn't conform to the expected formats. This happened for empty lines in particular.
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Phony unsupported log format. |
18 changes: 18 additions & 0 deletions
18
x-pack/filebeat/module/aws/vpcflow/test/bad.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"cloud.provider": "aws", | ||
"event.category": "network_traffic", | ||
"event.dataset": "aws.vpcflow", | ||
"event.kind": "event", | ||
"event.module": "aws", | ||
"event.original": "Phony unsupported log format.", | ||
"event.type": "flow", | ||
"fileset.name": "vpcflow", | ||
"input.type": "log", | ||
"log.offset": 0, | ||
"service.type": "aws", | ||
"tags": [ | ||
"forwarded" | ||
] | ||
} | ||
] |