> 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

## 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 ?](/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](/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](/island-router-cli-2.3.2/commands/show-syslog.md)
{% endcontent-ref %}

{% content-ref url="/pages/53mLrwVKtjS5UfQoPNed" %}
[clear syslog](/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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
