> For the complete documentation index, see [llms.txt](https://docs.islandrouter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/write/write-syslog.md).

# write syslog

Copy a system log file to a network location

## Syntax

```
write syslog <file> <url>
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td>file</td><td>The name of the log file to be copied.</td></tr><tr><td>url</td><td>The location to where the log file is to be written.</td></tr></tbody></table>

## Defaults

None; all parameters must be specified.

## Usage Guidelines

This command writes a system log file to a specificied network location.

A list of available system log files shown using the [show syslog ?](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/show-syslog.md) command.

If the log file to be written is in a subdirectory, specify the subdirectory name before the file name, separated by a space.

Refer to the [URL Format](https://docs.islandrouter.com/island-router-cli-2.3.2/url-format.md) section of this document for more information on the syntax of the url parameter.

## Examples

```
write syslog update.log scp://jane@10.164.17.9/logs/
write syslog slog 20241029-140105 scp://jane@10.164.17.9/logs/
```

## Related Commands

{% content-ref url="/pages/uoSfg7pzZjhUhgKPr0tt" %}
[show syslog](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/show-syslog.md)
{% endcontent-ref %}

{% content-ref url="/pages/53mLrwVKtjS5UfQoPNed" %}
[clear syslog](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/clear-syslog.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/write/write-syslog.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
