How to configure S3 output plugin for fluentd in Raspberry Pi and send data json logs to AWS S3

How to configure S3 output plugin for fluentd in Raspberry Pi and send data json logs to AWS S3