# CloudTrail data to ElasticSearch

**URL:** <https://discuss.elastic.co/t/cloudtrail-data-to-elasticsearch/106587>\
**Category:** Elasticsearch\
**Created:** [November 6, 2017, 9:31pm UTC](https://discuss.elastic.co/t/cloudtrail-data-to-elasticsearch/106587 "2017-11-06T21:31:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [November 6, 2017, 9:31pm UTC](https://discuss.elastic.co/t/cloudtrail-data-to-elasticsearch/106587/1 "2017-11-06T21:31:44Z")

</div>

Hi Team,

We having nearly 20 AWS accounts and we centralised CloudTrail logs to a single management account. We have a custom build ElasticSearch (5.6) in the EC2 in the same account.

Now we are trying to push all CloudTrail data from S3 bucket to ES (with put object as event trigger for lambda) using a lambda function. When using this we are facing some challenges while pushing the data to ES.

While going through lambda logs it is identified that some event response data (in json) is not maintaining proper structures. We are using python codes in lambda functions

Could you please help us to find a way to put all the CloudTrail events to ElasticSearch with out any failure.

---

<div class="post-metadata">

**Author:** ![john.akash](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john.akash/32/18707_2.png) [@john.akash](https://discuss.elastic.co/u/john.akash)\
**Post date:** [November 23, 2017, 7:29am UTC](https://discuss.elastic.co/t/cloudtrail-data-to-elasticsearch/106587/2 "2017-11-23T07:29:35Z")

</div>

Hi Team, Could you please take a look on this?

---

<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:** [December 21, 2017, 7:29am UTC](https://discuss.elastic.co/t/cloudtrail-data-to-elasticsearch/106587/3 "2017-12-21T07:29:39Z")

</div>

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