fluent-plugin-mongo icon indicating copy to clipboard operation
fluent-plugin-mongo copied to clipboard

mongo-tail not triggering with S3 as save location

Open ManpreetNanreh opened this issue 3 years ago • 0 comments

Hi,

I am trying to use mongo-tail to monitor the MongoDB. The goal here is to read data from MongoDB continuously and store it into the S3 bucket. The configuration below compiles successfully with no issue but mongo-tail does not trigger and read data from the database. I don't see any logs coming into S3 or in the buffer save location. I am not sure what the issue is, so please help me resolve this issue.

<source>
        @type mongo_tail
        url mongodb://USERNAME:PASSWORD@HOST:PORT/DB_NAME
        collection COLLECTION_NAME
        tag mongoLogs
</source>

<match mongoLogs.**>
        @type s3
        aws_key_id ID
        aws_sec_key KEY
        region REGION

        s3_region REGION
        s3_bucket BUCKET_NAME
        path raw/

        <buffer>
                @type file
                path ~/bufferLogs/
                chunk_limit_size 256m
                timekey 60s
                timekey_wait 10s
        </buffer>
</match>

Please let me know if you need more info.

ManpreetNanreh avatar May 06 '21 14:05 ManpreetNanreh