# From CloudTrail S3 SQS to Elastic via Logstash

**URL:** <https://discuss.elastic.co/t/from-cloudtrail-s3-sqs-to-elastic-via-logstash/271391>\
**Category:** Logstash\
**Created:** [April 27, 2021, 1:58pm UTC](https://discuss.elastic.co/t/from-cloudtrail-s3-sqs-to-elastic-via-logstash/271391 "2021-04-27T13:58:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitri\_Goldshtein](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dimitri_goldshtein/32/62958_2.png) [@Dimitri\_Goldshtein](https://discuss.elastic.co/u/Dimitri_Goldshtein)\
**Post date:** [April 27, 2021, 1:58pm UTC](https://discuss.elastic.co/t/from-cloudtrail-s3-sqs-to-elastic-via-logstash/271391/1 "2021-04-27T13:58:49Z")

</div>

Hi all !  
I try get logs from my aws s3 via logstash !  
I generate get logs from CloudTrail to s3 with format \*\*\*\*.json.gz  
in logstash i use this input file

```auto
input {
  sqs {
    queue => "test_logs_ks"
    access_key_id => " ******************"
    secret_access_key => " *********************"
    polling_frequency => 5
    type => "cloudtrail"
    codec => "cloudtrail"
    region => "eu-west-1"
    threads => 4
  }
}

```

but in kibana side i see incomplete index  
and see path to log

```auto
AWSLogs/ *********/CloudTrail/us-east-1/2021/04/27/076944484853_CloudTrail_us-east-1_20210427T1340Z_********.json.gz

```

and i want open this file

---

<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:** [May 25, 2021, 1:59pm UTC](https://discuss.elastic.co/t/from-cloudtrail-s3-sqs-to-elastic-via-logstash/271391/2 "2021-05-25T13:59:15Z")

</div>

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