# 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`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.auterion.com/hardware-integration/skynode-s/skynode-s-flight-logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
