Skip to content

Commit

Permalink
Merge pull request #5 from goudyj/fix/grayloghttpoutput-payload
Browse files Browse the repository at this point in the history
fix(GraylogHTTPPlugin): send only message and intake_key in payload
  • Loading branch information
goudyj authored Dec 24, 2021
2 parents 06d803f + 7f0e182 commit 3c90f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/plugin/HttpOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void write(Message msg) throws Exception {

Map<String, Object> payload = new HashMap<>();
payload.put("intake_key", this.intake_key);
payload.put("json", this.gson.toJson(msg.getFields()));
payload.put("json", msg.getMessage());

this.executeRequest(
RequestBody.create(
Expand Down

0 comments on commit 3c90f82

Please sign in to comment.