# Ingest log files stored in ".gz" format in AWS S3

**URL:** <https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722>\
**Category:** Logs\
**Tags:** aws, logs\
**Created:** [May 22, 2024, 9:32am UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722 "2024-05-22T09:32:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirai](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/shirai/32/27711_2.png) [@Shirai](https://community.dynatrace.com/u/Shirai)\
**Post date:** [May 22, 2024, 9:32am UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/1 "2024-05-22T09:32:46Z")

</div>

A customer has a question.  
Is it possible to ingest “.gz” format log files stored in AWS S3 into Dynatrace and monitor them?

I understand that this is possible without any problems if the log file is in plain format. However, I don’t think “.gz” can be ingested into Dynatrace. I would like to hear your opinions.

T.Shirai

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 22, 2024, 12:36pm UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/2 "2024-05-22T12:36:35Z")

</div>

Hi,

Are you talking in Grail or Logs Classic?

Best regards

---

<div class="post-metadata">

**Author:** ![Shirai](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/shirai/32/27711_2.png) [@Shirai](https://community.dynatrace.com/u/Shirai)\
**Post date:** [May 22, 2024, 11:55pm UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/3 "2024-05-22T23:55:08Z")

</div>

Thanks for your comment. I am talking about Grail.

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [May 23, 2024, 6:56am UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/4 "2024-05-23T06:56:57Z")

</div>

Hi,

I suppose no limitation about data format because I only see limitations in [logs classic](https://docs.dynatrace.com/docs/shortlink/log-monitoring-supported-format).

I have just not found similar documentation in Grail but I hope someone confirm to you.

Best regards

---

<div class="post-metadata">

**Author:** ![jabari](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jabari](https://community.dynatrace.com/u/jabari)\
**Post date:** [November 14, 2024, 1:14pm UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/5 "2024-11-14T13:14:18Z")

</div>

Sorry, but currently log agent doesn’t support gz files and rotation into gz files.

---

<div class="post-metadata">

**Author:** ![Eonives1](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@Eonives1](https://community.dynatrace.com/u/Eonives1)\
**Post date:** [April 11, 2025, 3:04pm UTC](https://community.dynatrace.com/t/ingest-log-files-stored-in-gz-format-in-aws-s3/45722/6 "2025-04-11T15:04:37Z")

</div>

Hi everyone,

Just to share our experience — in one of our customer environments, we were able to ingest .gz compressed log files using the S3 Log Forwarder and view their contents in Dynatrace (both in Logs Classic and the new Logs UI).

However, we noticed that **not all log lines are visible**. While the ingestion works and we can search inside the log content, we are unable to retrieve the **first and last lines** from the files — even when using specific search queries for those lines.

At this point, we are trying to understand if this is:

- a limitation of Dynatrace itself,
- or a limitation specifically related to handling .gz compressed files.

Any insights or official confirmation would be very helpful.

Thanks!
