title: AWS Glue crawling JSON lines data in S3
body: <p>I have this type of data in my S3:</p>
  <pre><code>{&quot;version&quot;:&quot;0&quot;,&quot;id&quot;:&quot;c1d9e9a4-25a2-a0d8-2fa4-b062efec98c4&quot;,&quot;detail-type&quot;:&quot;OneTypeee&quot;,&quot;source&quot;:&quot;OneSource&quot;,&quot;account&quot;:&quot;123456789&quot;,&quot;time&quot;:&quot;2021-01-17T12:35:17Z&quot;,&quot;region&quot;:&quot;eu-central-1&quot;,&quot;resources&quot;:[],&quot;detail&quot;:{&quot;Key1&quot;:&quot;Value1&quot;}}
  {&quot;version&quot;:&quot;0&quot;,&quot;id&quot;:&quot;c13879a4-2h32-a0d8-9m33-b03jsh3cxxj4&quot;,&quot;detail-type&quot;:&quot;OtherType&quot;,&quot;source&quot;:&quot;SomeMagicSource&quot;,&quot;account&quot;:&quot;123456789&quot;,&quot;time&quot;:&quot;2021-01-17T12:36:17Z&quot;,&quot;region&quot;:&quot;eu-central-1&quot;,&quot;resources&quot;:[],&quot;detail&quot;:{&quot;Key2&quot;:&quot;Value2&quot;, &quot;Key22&quot;:&quot;Value22&quot;}}
  {&quot;version&quot;:&quot;0&quot;,&quot;id&quot;:&quot;gi442233-3y44a0d8-9m33-937rjd74jdddj&quot;,&quot;detail-type&quot;:&quot;MoreTypes&quot;,&quot;source&quot;:&quot;SomeMagicSource2&quot;,&quot;account&quot;:&quot;123456789&quot;,&quot;time&quot;:&quot;2021-01-17T12:45:17Z&quot;,&quot;region&quot;:&quot;eu-central-1&quot;,&quot;resources&quot;:[],&quot;detail&quot;:{&quot;MagicKey&quot;:&quot;MagicValue&quot;, &quot;Foo&quot;:&quot;Bar&quot;}}
  </code></pre>
  <p>Please note, I have added new lines to make it more readable. In reality, Kinesis Firehose produces these batches with no newlines.</p>
  <p>When I try to run an AWS Glue crawler on this type of data, it only crawls the first JSON line and that's it. I know this because when I run Athena SQL queries, I always get only one (first) result.</p>
  <p>How do I make a glue crawler correctly crawl through this data and make a correct schema so I could query all of that data?</p>