diff --git a/ecs/Dockerfile b/ecs/Dockerfile index 7c99a45..ba2f106 100644 --- a/ecs/Dockerfile +++ b/ecs/Dockerfile @@ -1,2 +1,3 @@ FROM amazon/aws-for-fluent-bit:latest +ADD parsers.conf /parsers.conf ADD custom.conf /custom.conf diff --git a/ecs/custom.conf b/ecs/custom.conf index 8ab5f9b..287a8af 100644 --- a/ecs/custom.conf +++ b/ecs/custom.conf @@ -1,5 +1,5 @@ [SERVICE] - Parsers_File /fluent-bit/parsers/parsers.conf + Parsers_File /parsers.conf [FILTER] Name modify @@ -15,4 +15,4 @@ Name parser Match * Key_Name message - Parser docker + Parser ecs-json diff --git a/ecs/parsers.conf b/ecs/parsers.conf new file mode 100644 index 0000000..13c0646 --- /dev/null +++ b/ecs/parsers.conf @@ -0,0 +1,5 @@ +[PARSER] + Name ecs-json + Format json + Time_Key time + Time_Format %Y-%m-%dT%H:%M:%S:%LZ