Closed YikaiHu closed 2 years ago
My fault, the log should be:
{"time": "08/Mar/2022:06:28:03 +0000", "host": "204.48.112.175", "user-identifier": "-", "method": "POST", "request": "/synthesize/initiatives/integrated", "protocol": "HTTP/2.0", "status": 502, "bytes": 10272, "referer": "http://www.centralenable.name/user-centric/reintermediate/synergistic/e-business"}
Describe the bug
Hi all, I am new with Fluentd.
And I want to read log file stored in s3 in json format and then write into AWS Kinesis Data Stream.
While reading the file from s3, fluentd reads each line of json file into json instead of taking whole file as a single log stream.
My fluentd configuration is look like below:
I would appreciate if anyone help me to figure out how to read entire json file as single log stream.
My Json file in S3 is like:
And I also set the output of Fluentd to stdout to see the output, and I got the:
Many thanks.
To Reproduce
Start the fluentd.
And upload the log file to the S3 bucket.
Then you can see the parsed log.
Expected behavior
Read entire json file as single log stream.
Your Environment
Your Configuration
Your Error Log
Additional context
No response