• HOW TO: Include System Logs When Asking For Help


    In the majority of cases, simply describing your issue will not provide enough information for someone to identify it’s cause and advise you on how to resolve it. It is important to include any system logs that may be relevant to your issue to ensure that neither your time nor the other person’s time is wasted. The following is a list of the most common system logs and where/how to obtain them. The logs are listed in the order of importance.

    [size]DO THIS FIRST[/size:1z725488][/color:1z725488]
    Start by creating a directory in /tmp for the logs you will gather:
    [command:1z725488]mkdir /tmp/logs[/command:1z725488]
    [color][size]SYSTEMD JOURNAL[/size:1z725488][/color:1z725488]
    The systemd journal can only be accessed using the journalctl command. You can export your system’s journal from the last three boots using these commands:[command:1z725488]sudo journalctl -b 0 > /tmp/logs/journal
    sudo journalctl -b 1 > /tmp/logs/journal.last
    sudo journalctl -b 2 > /tmp/logs/journal.2last[/command:1z725488]
    [color][size]XSESSION[/size:1z725488][/color:1z725488]
    Your session log is located in your /home directory:

    cp ~/.xsession-errors /tmp/logs
    cp ~/.xsession-errors.old /tmp/logs
    

    XORG (X11)[/size:1z725488][/color:1z725488]
    You can find your Xorg logs here:

    cp /var/log/Xorg.0.log /tmp/logs
    cp /var/log/Xorg.0.log.old /tmp/logs
    

    LightDM’s logs can be found here:

    sudo cp /var/log/lightdm/lightdm.log /tmp/logs
    sudo cp /var/log/lightdm/x-0-greeter.log /tmp/logs
    

    POSTING LOGS TO THE FORUM[/size:1z725488][/color:1z725488]
    You cannot attach a single log file. Instead you must create an archive that holds all the logs you wish to include and then attach the archive to your post. Here is an example on how to create an archive of a the /tmp/logs directory that you created earlier[command:1z725488]sudo chmod -R 666 /tmp/logs
    tar -cf logs.tar /tmp/logs[/command:1z725488][/size][/color][/size][/color][/size][/color][/size][/color][/size][/color][/size]

  • In the majority of cases, simply describing your issue will not provide enough information for someone to identify it’s cause and advise you on how to resolve it. It is important to include any system logs that may be relevant to your issue to ensure that neither your time nor the other person’s time is wasted. The following is a list of the most common system logs and where/how to obtain them. The logs are listed in the order of importance.

    [size]DO THIS FIRST[/size:1z725488][/color:1z725488]
    Start by creating a directory in /tmp for the logs you will gather:
    [command:1z725488]mkdir /tmp/logs[/command:1z725488]
    [color][size]SYSTEMD JOURNAL[/size:1z725488][/color:1z725488]
    The systemd journal can only be accessed using the journalctl command. You can export your system’s journal from the last three boots using these commands:[command:1z725488]sudo journalctl -b 0 > /tmp/logs/journal
    sudo journalctl -b 1 > /tmp/logs/journal.last
    sudo journalctl -b 2 > /tmp/logs/journal.2last[/command:1z725488]
    [color][size]XSESSION[/size:1z725488][/color:1z725488]
    Your session log is located in your /home directory:

    cp ~/.xsession-errors /tmp/logs
    cp ~/.xsession-errors.old /tmp/logs
    

    XORG (X11)[/size:1z725488][/color:1z725488]
    You can find your Xorg logs here:

    cp /var/log/Xorg.0.log /tmp/logs
    cp /var/log/Xorg.0.log.old /tmp/logs
    

    LightDM’s logs can be found here:

    sudo cp /var/log/lightdm/lightdm.log /tmp/logs
    sudo cp /var/log/lightdm/x-0-greeter.log /tmp/logs
    

    POSTING LOGS TO THE FORUM[/size:1z725488][/color:1z725488]
    You cannot attach a single log file. Instead you must create an archive that holds all the logs you wish to include and then attach the archive to your post. Here is an example on how to create an archive of a the /tmp/logs directory that you created earlier[command:1z725488]sudo chmod -R 666 /tmp/logs
    tar -cf logs.tar /tmp/logs[/command:1z725488][/size][/color][/size][/color][/size][/color][/size][/color][/size][/color][/size]

  • ok done that but something weird… i don’t have a /tmp/logs folder nor do i have any journal files in the tmp directory…

  • @“higltypig”:8eefn42l said:

    ok done that but something weird… i don’t have a /tmp/logs folder[/quote:8eefn42l]

    Those are sample terminal commands.
    You need to change /tmp/logs to the /path/to/folder where you have copied the logs.

    Or simply make a “logs” folder in your /tmp/ folder, copy the required logs into it and then,
    [command:8eefn42l]sudo chmod -R 666 /tmp/Logs
    tar -cf logs.tar /tmp/Logs[/command:8eefn42l]

    Archlinux x64

    AMD A4-3305M Processor
    6GB RAM
    1GB+512MB Hybrid AMD GPU

  • ugh -

    i’m failing at linux here.

    Can’t find any log files,- even thought they were there before.

    I’m getting the hanging still happening, and also when i boot into lightDM it hangs after putting my password in and pressing enter. I switch on/off and mostly it works but when it hangs i have to power off

  • I revised my OP so that it is easier to follow. Hope it helps :-)

Posts 6Views 1266
Log in to reply