Sending sensor data in json logs using Fluentd to AWS S3

Hi,
i have to send data from Raspberry Pi to AWS S3 using fluentd.
I tried modifying fluent.conf file to send json logs to my S3 bucket.

But I’m unable to get the data from Pi Fluentd to AWS S3.

Kindly help me resolve the issue.