# Skynode S flight logs

{% hint style="info" %}
We are improving logging and logs transfer on Skynode S.\
We understand this method might be a bit cumbersome, but it is just temporary.
{% endhint %}

## How Skynode S handles flight logs

Skynode S stores flight logs in the internal storage of the companion computer.\
The flight log starts when arming the drone, and stops when disarming the drone.

{% hint style="info" %}
At the moment it is not possible to enable logging from boot, but we are working on it.
{% endhint %}

Logging is automatically enabled, but can be disable by setting the override variable `DATA_LOGGER_ENABLED` to `0`.

## How to get flight logs from Skynode S

To retrieve the flight logs from Skynode S you need to be able to SSH into it, either by connecting to it over USB-C, or by having a connection between Skynode S and the laptop through a data link.

The logs are located in the folder `/data/log/flight-stack` and you can download them using `scp`:

```
scp root@<SKYNODE_S_IP>:/data/log/flight-stack/* <PATH_TO_STORE_LOGS>
```

Where:

* `<SKYNODE_S_IP>` is the IP address of Skynode S (10.41.1.1 if connected over USB-C)
* `<PATH_TO_STORE_LOGS>` is the path where you want the logs to be saved to

The command above pulls all the logs in the folder; if you need to get a specific log, you have to SSH into Skynode S and not down the name of the log you need, then run the command

```
scp root@<SKYNODE_S_IP>:/data/log/flight-stack/<LOG_NAME> <PATH_TO_STORE_LOGS>
```

Where:

* `<SKYNODE_S_IP>` is the IP address of Skynode S (10.41.1.1 if connected over USB-C)
* `<PATH_TO_STORE_LOGS>` is the path where you want the logs to be saved to
* `<LOG_NAME>` is the name of the log, including the extension `.ulg`
