Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

log files .gz in windows

Avatar

Level 2

I am unable to extract .gz log files. I am getting below weird text.

 

gbis1719_0-1679047887047.png

 

Can anyone help ?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @gbis1719,

 

It is easier to extract and read gzip files on linux system as compared to windows.

For windows, you can install Linux on windows using WSL. (Ubuntu WSL is available on Microsoft Store)

 

You can then use the gunzip command as shown below -

gunzip filename.log.gz

Or

gzip -d file.gz

This converts the .log.gz file to simply .log file. Hope this helps!

There are other ways as well. Please find the below blog -

https://linuxize.com/post/how-to-unzip-gz-file/

 

Thanks,

Rohan Garg

View solution in original post

6 Replies

Avatar

Community Advisor

@gbis1719 : how are you extracting it , which tool you are using to extract .

Thanks,
Siva

Avatar

Level 2

i am not using any tool, just removing .gz

Avatar

Correct answer by
Community Advisor

Hi @gbis1719,

 

It is easier to extract and read gzip files on linux system as compared to windows.

For windows, you can install Linux on windows using WSL. (Ubuntu WSL is available on Microsoft Store)

 

You can then use the gunzip command as shown below -

gunzip filename.log.gz

Or

gzip -d file.gz

This converts the .log.gz file to simply .log file. Hope this helps!

There are other ways as well. Please find the below blog -

https://linuxize.com/post/how-to-unzip-gz-file/

 

Thanks,

Rohan Garg

Avatar

Level 2

and how to do without linux in windows??

Avatar

Community Advisor

Hi @gbis1719

 

You can use WinZip or 7-Zip. I haven't tried it before but it should work nonetheless.

 

Also, you can refer the below URLs-

https://www.bls.gov/help/instructions-for-opening-gz-files.htm

https://www.winzip.com/en/learn/file-formats/gz/

https://www.wikihow.com/Extract-a-Gz-File

 

Thanks,

Rohan Garg

Avatar

Level 2

it works with this wsl and gzip command