# Sending AWS S3 Data to AWS Cloud Watch

**URL:** <https://discuss.elastic.co/t/sending-aws-s3-data-to-aws-cloud-watch/293594>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [January 5, 2022, 9:02pm UTC](https://discuss.elastic.co/t/sending-aws-s3-data-to-aws-cloud-watch/293594 "2022-01-05T21:02:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makimaki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/makimaki/32/99890_2.png) [@makimaki](https://discuss.elastic.co/u/makimaki)\
**Post date:** [January 5, 2022, 9:02pm UTC](https://discuss.elastic.co/t/sending-aws-s3-data-to-aws-cloud-watch/293594/1 "2022-01-05T21:02:50Z")

</div>

Hi,

I'm trying to send log data from AWS S3 to CloudWatch and nothing is happening  
This is log file

```auto
{"docker": {"container_id": "fe9802"},"kubernetes": {"container_name": "pairwise-individual"}},"message": "2022-01-05 12:43:39.332 )","level": "info","@timestamp": "2022-01-05T12:43:39.335718+00:00", "viaq_index_name": "app-write", "viaq_msg_id": "ZmIz1LWE5asstZWNiMDdlMDkxNzM0", "log_type": "application"}
{"docker": {"container_id": "fe9803"},"kubernetes": {"container_name": "pairwise-individual"}},"message": "2022-01-05 12:43:39.336 )","level": "info","@timestamp": "2022-01-05T12:43:39.335718+00:00", "viaq_index_name": "app-write", "viaq_msg_id": "ZmIz1LWE5YmYtZWNiMDdlMDkxNzM0", "log_type": "application"}

```

And this is my configuration

```auto
input {
    s3 {
        id => "idexnpe"
        access_key_id => "sefsef"
        secret_access_key => "sefsfe"
        bucket => "bucket name"
        prefix => "logs"
        region => "ap-southeast-2"
        interval => "10"
        codec => multiline { pattern => "^Spalanzani" negate => true what => previous auto_flush_interval => 1 multiline_tag => "" }
        }
    }
filter {
       alter {
            add_field => { "CW_metric" => "IDXLogs" }
       }
       json {
                skip_on_invalid_json => true
                source => "message"
        }
}
output {
        stdout {
            codec => json_lines
        }
        cloudwatch {
            access_key_id => "sfsef"
            secret_access_key => "sefsef"
            region => "ap-southeast-2"
        }
    }

```

Can someone help me?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 5, 2022, 9:04pm UTC](https://discuss.elastic.co/t/sending-aws-s3-data-to-aws-cloud-watch/293594/2 "2022-01-05T21:04:38Z")

</div>

Please don't start multiple topics on the same question 🙂

> [@Logs from AWS S3 does not go to AWS CoudWatch](https://discuss.elastic.co/t/logs-from-aws-s3-does-not-go-to-aws-coudwatch/293583):
>
> Hi, I'm trying to read logs from the S3 bucket and put them to CloudWatch. But nothing happens in the CloudWatch. Log file in S3 contain min 2 JSON strings {"docker":{"container\_id":"fe98027af6490c542e8d0321115f4c1e9ea3c73e75efee847972372b3273706b"},"kubernetes":{"container\_name":"pairwise-individual","namespace\_name":"sso-dev","pod\_name":"pairwise-individual-44-gtv4q","container\_image":"image-registry.openshift-image-registry.svc:5000/sso-dev/pairwise-service@sha256:1db7f80eef580223d24ada09…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2022, 9:04pm UTC](https://discuss.elastic.co/t/sending-aws-s3-data-to-aws-cloud-watch/293594/3 "2022-02-02T21:04:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
