# Flushing logs from AWS S3 bucket to ElasticSearch : Validation Failed: 1: type is missing

**URL:** <https://discuss.elastic.co/t/flushing-logs-from-aws-s3-bucket-to-elasticsearch-validation-failed-1-type-is-missing/226661>\
**Category:** Elasticsearch\
**Created:** [April 6, 2020, 9:21am UTC](https://discuss.elastic.co/t/flushing-logs-from-aws-s3-bucket-to-elasticsearch-validation-failed-1-type-is-missing/226661 "2020-04-06T09:21:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanCap](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@IanCap](https://discuss.elastic.co/u/IanCap)\
**Post date:** [April 6, 2020, 9:21am UTC](https://discuss.elastic.co/t/flushing-logs-from-aws-s3-bucket-to-elasticsearch-validation-failed-1-type-is-missing/226661/1 "2020-04-06T09:21:28Z")

</div>

Hi everyone,

I'm currently trying to collect logs files stored in a S3 Bucket on AWS and send them to a clouded ES deployment. I followed the following tutorial : [https://developers.cloudflare.com/logs/analytics-integrations/elastic/](https://developers.cloudflare.com/logs/analytics-integrations/elastic/)

The tutorial works great with ES 6.8.X but only the new logs are being send to ES

So i customized the lambda function and managed to select the already existing logs files but when it processes the selected files, i get the following error : "Validation Failed: 1: type is missing".

I'm new to the whole ES stack and don't have a lot more of debug info regarding this issue

I'll provide any information regarding my configuration to work the problem together !

Thanks in advance,

Ian

---

<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 4, 2020, 9:21am UTC](https://discuss.elastic.co/t/flushing-logs-from-aws-s3-bucket-to-elasticsearch-validation-failed-1-type-is-missing/226661/2 "2020-05-04T09:21:45Z")

</div>

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