Skip to content

Commit

Permalink
Added log parser
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrixroa committed Dec 4, 2020
1 parent 8a75dea commit 4149bcf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
11 changes: 11 additions & 0 deletions extra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SERVICE]
Parsers_File /fluent-bit/parsers/parsers.conf
Flush 1
Grace 30

[FILTER]
Name parser
Match *
Key_Name log
Parser json
Reserve_Data True
4 changes: 3 additions & 1 deletion task_definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"image": "906394416424.dkr.ecr.us-east-1.amazonaws.com/aws-for-fluent-bit:latest",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit"
"type": "fluentbit",
"config-file-type": "file",
"config-file-value": "/extra.conf"
},
"memoryReservation": 50
},
Expand Down

0 comments on commit 4149bcf

Please sign in to comment.