# Xrdp

### 1. xrdp.conf ダウンロードrsyslogを使用 <a href="#id-1" id="id-1"></a>

```bash
curl https://repo.plura.io/v5/module/rsyslog/80-xrdp.conf -o /etc/rsyslog.d/80-xrdp.conf
```

### 2. 80-xrdp.conf 修整 <a href="#id-2" id="id-2"></a>

<pre><code><strong>> /etc/xrdp/xrpd.ini ログ位置確認
</strong>
[Logging] LogFile=xrdp.log
LogLevel=DEBUG
EnableSyslog=true
SyslogLevel=DEBUG
> /etc/xrdp/sesman.ini ログ位置確認

[Logging] LogFile=xrdp-sesman.log
LogLevel=DEBUG
EnableSyslog=1
SyslogLevel=DEBUG

# vi /etc/rsyslog.d/80-xrdp.conf
</code></pre>

### 3. rsyslog デーモン再スタート <a href="#id-3" id="id-3"></a>

```bash
service rsyslog restart
```

### 4. ログ確認 <a href="#id-4" id="id-4"></a>

* ログ例 : 全体ログ > ホスト

<figure><img src="/files/D4dctmIeAxlJbsDWTXT3" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/OP5By1IFCfvVB3E4COye" alt=""><figcaption></figcaption></figure>

* [x] 上記の内容を活用してフィルターを登録すると、探知ログを確認することができます。

> [https://docs.plura.io/ja/fn/comm/filter/syslog](https://docs.plura.io/ja/function/common/filter/syslog)


---

# 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.plura.io/ja/agents/siem/uplc/xrdp.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.
