> ## Documentation Index
> Fetch the complete documentation index at: https://stellar-relay.isoc.ooo/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Validate Stellar Relay in the foreground, then move the verified configuration to systemd.

# Quickstart

For a new deployment, validate the data path **in the foreground first**. After Alert and Case delivery work as expected, use the Setup Wizard once to install the verified configuration as a systemd service.

## 1. Get the script

```bash theme={null}
git clone https://github.com/xdr-labs/Stellar-Case-Alert-to-Sylog.git
cd Stellar-Case-Alert-to-Sylog
```

Python 3.9+ is required.

You need:

* network access to the Stellar Cyber API
* network access to the destination TCP listener
* an email-format Stellar Cyber User ID
* an All-Access API token

## 2. Set the token for foreground testing

```bash theme={null}
export STELLAR_TOKEN='YOUR_ALL_ACCESS_TOKEN'
```

Using the environment variable avoids placing the token directly in shell history.

## 3. Test Alert forwarding first

Start with Alert only. Do not use the Wizard or systemd yet.

```bash theme={null}
python3 Stellar_Alert_Case_Syslog.py \
  --host YOUR_STELLAR_HOST \
  --userid YOUR_USER_EMAIL \
  --alert-interval 60 \
  --alert-syslog-ip 10.10.10.20 \
  --alert-syslog-port 5201 \
  --initial-lookback-hours 0 \
  --debug
```

Confirm that:

* the process starts without authentication/API errors
* Alert records arrive at the TCP receiver
* each received line is one JSON object

`--initial-lookback-hours 0` limits the initial fetch to a one-minute window. For Alert, the window is anchored to the stable fetch cutoff.

Let it run for a few cycles, then press **Ctrl+C**.

> [!NOTE]
>
> If production will use Alert only, you can skip the combined-stream test after this step succeeds.

## 4. Test Alert and Case together

If production will use both streams:

```bash theme={null}
python3 Stellar_Alert_Case_Syslog.py \
  --host YOUR_STELLAR_HOST \
  --userid YOUR_USER_EMAIL \
  --alert-interval 60 \
  --alert-syslog-ip 10.10.10.20 \
  --alert-syslog-port 5201 \
  --case-interval 300 \
  --case-syslog-ip 10.10.10.20 \
  --case-syslog-port 5202 \
  --initial-lookback-hours 0 \
  --debug
```

Verify Alert and Case records at their configured destinations, then press **Ctrl+C**.

The two streams may use the same receiver or different IP/port combinations.

## 5. Move the verified settings to systemd

Run the Wizard:

```bash theme={null}
python3 Stellar_Alert_Case_Syslog.py --setup
```

Enter the values that passed foreground testing:

1. Stellar Cyber host
2. email-format User ID
3. All-Access API token
4. Alert enabled/disabled
5. Case enabled/disabled
6. interval and destination for each enabled stream
7. initial lookback

When asked:

```text theme={null}
Run continuously with systemd (auto-start on boot)?
```

choose **Yes**.

The Wizard installs, enables, and starts:

```text theme={null}
stellar-alert-case-syslog.service
```

## 6. Verify production operation

```bash theme={null}
sudo systemctl status stellar-alert-case-syslog
systemctl is-enabled stellar-alert-case-syslog
sudo journalctl -u stellar-alert-case-syslog -n 20 --no-pager
```

Confirm there are no repeating API/authentication/TCP delivery errors and that receiver data continues to arrive.

## 7. Routine log checks

Live logs:

```bash theme={null}
sudo journalctl -u stellar-alert-case-syslog -f
```

Recent logs:

```bash theme={null}
sudo journalctl -u stellar-alert-case-syslog -n 50 --no-pager
```

Today's logs:

```bash theme={null}
sudo journalctl -u stellar-alert-case-syslog --since today --no-pager
```

Pressing **Ctrl+C** while following the journal stops only the log view, not the service.

## Recommended deployment flow

```text theme={null}
Download / clone
      ↓
Foreground Alert test
      ↓
Foreground Alert + Case test (if required)
      ↓
Setup Wizard with verified values
      ↓
Enable systemd
      ↓
Monitor with journalctl
```

For all CLI options and defaults, see [Configuration](https://stellar-relay.isoc.ooo/configuration.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.