-
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: {
"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"
} And I also set the output of Fluentd to stdout to see the output, and I got the:
Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe each event should be a single line. There's multiline input but it's for parsing custom multi-line events with regex. ETA: I've seen your issue #3698. Seems you figured it out. |
Beta Was this translation helpful? Give feedback.
I believe each event should be a single line.
There's multiline input but it's for parsing custom multi-line events with regex.
ETA: I've seen your issue #3698. Seems you figured it out.