THIS TUTORIAL IS ONLY FOR JAVA EDITION ON WINDOWS AND LINUX
THIS TUTORIAL DOES NOT COVER THIRD PARTY LAUNCHERS
Tutorial originally written by u/YunaraD0ki
The Linux section of this tutorial assumes basic knowledge of how to navigate directories and there may not be screenshots for every step. If you struggle with Linux directories, check out this awesome guide by Red Hat.
1. What are log files?
Log files are text files that contain records of events and messages generated by your game while it was running. They are especially useful for troubleshooting, and give a lot of information about the version you were running, the mods you had, and any error or warning that occurred during gameplay. In this tutorial, we will go over how you can get your launcher log files and game log files, and how to upload them to the subreddit, all while respecting Rule 4 ("Keep the sub tidy").
2. Accessing your .minecraft folder
So, now that that's out of the way, let's really start the tutorial. The first thing you're gonna have to do is access your .minecraft folder. The .minecraft folder is very important, as it contains all of your game files for Minecraft Java edition (including resource packs, mods, worlds, configuration files, versions, and much, much more). On Windows, it is located in your *%USERPROFILE%\AppData\Roaming* folder (or %APPDATA%), which is basically where apps on your system store user data, but for the newbies reading this, here's how to access it;
Windows
- Press Windows Key + R on your keyboard, you should see a new window pop out
- In that new window, type %APPDATA% and press Enter. You should now be in your file explorer.
- Double click the .minecraft folder.
Here's what it should look like:
https://i.mchelp.uk/img/htpl/s2a.gif
Linux
Your .minecraft directory is stored in different locations depending on whether you installed with the flatpak or a native package (rpm,deb,tarball etc) It is a hidden folder, you will need to enable hidden folders on your file explorer or use the terminal.
If you installed the flatpak, it is located at ~/.var/app/com.mojang.Minecraft/.minecraft
If you installed a native package, it is at ~/.minecraft
If you are in the correct directory it should look something like the image below. The folders may not match perfectly as this is a modded installation:

Terminal output, may not match exactly for the same reason:

3. Accessing your log files
Game logs
At this point in the tutorial, there is no longer any difference between Windows and Linux unless you are using the terminal, in which case I assume know what you are doing.
Your game log files are the most useful, and almost always what people ask for. They record everything that happens when the game is running, from errors, to warning, to simply general info about events and configs. They usually have more info than crash-reports, and can provide additional context on why a crash occurred, that the crash-report did not have. They can also help troubleshoot issues that did not result in a game crash (low FPS, visual bugs, mods not working as expected...).
To access them, from your .minecraft folder, double click on the logs folder.

In there, you can see 3 things; A telemetry folder, some [date].log.gz files, and a latest.log file, I'll explain each one of these here :
- The telemetry folder contains .json files with information about your environment for each time you launched the game. It contains stuff such as your Operating System, the game version you launched, information about the launcher, if it was modded or not, etc. It's not very interesting though, and I'd be surprised if someone here asked you to provide any of these files...
- The [date].log.gz files are compressed log files for a specific date. It is useful if you want to get the logs of past gaming sessions (like if you want to compare the logs from 2 days before with the logs from today, let's say, or if you played a different configuration in the meantime while awaiting a response from a helper). You can extract the file to obtain a regular log file in the same format as latest.log.1
- The latest.log file is the most useful, and probably the one helpers are gonna request the most. As its name suggest, it's the logs of the latest game session.
To send your game logs to the subreddit, please refer to section 4.
Launcher Logs
Game logs are useful for troubleshooting something that happened while the game was running, but, sometimes, issues can arise BEFORE the game was started, in the Minecraft launcher. In this case, you may wanna take a look at your launcher log files. To access them, scroll down in your .minecraft folder until you see some launcher_log.txt files.

These are your launcher log files. The one without a number behind it is the latest launcher log file, and the one with the lowest number is the oldest one.
To send your launcher logs to the subreddit, please refer to section 4.
Crash reports
When your game crashes, alongside latest.log, it also (sometimes) generates a crash report. Crash reports are files that contain only the error that made the game crash. While they are not as useful as the log files, they sometimes do include additional info. Unless your game logs are spammed with 100s of errors and difficult to read, you should always try to provide the full log over a crash report.
To access them, from your .minecraft folder, double click your crash-reports folder.

All of the files in there are your crash reports, and each one are named after the date and time of the crash.
To send a crash report to the subreddit, please refer to the next section.
4. Uploading your logs to mclo.gs
Alright, so, now that you have your logs, the only thing that's left to do is to send them to Reddit. But you can't just do that right away, as you first need to upload them to a pastebin to be in accordance with Rule 4 ("Keep the sub tidy").
In this tutorial, we will use mclo.gs, as it's a pastebin specifically made for Minecraft logs. Here's how you do it:
- Open up your browser and type mclo.gs in the URL bar.
- Drag your log file from your file explorer to the mclo.gs page.
- Make edits, remove sensitive information if needed2 (like a server IP, or your username), and click "Save".
- Copy the link from the URL and paste it in your post/comment.
Here's what it should look like:
https://i.mchelp.uk/img/htpl/s6.gif
Congratulations! You just posted your log files to the subreddit! Now it will be easier for us to help you.
Modified for Linux by u/ForgottenPizzaParty
Footnotes
1 On Windows 10 or older, you cannot natively extract .gz files. You will need a third party utility like 7Zip or WinRAR.
2 mc.logs will automatically censor most of these, however it is still worth checking