# Openvpn

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

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

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

* ログ位置確認

```
vi /etc/openvpn/server/server.conf
```

```
log /var/log/openvpn.log
log-append /var/log/openvpn.log
```

```
vi /etc/rsyslog.d/80-openvpn.conf
```

### 3. openvpn server conf 修整 <a href="#id-3" id="id-3"></a>

* logging レベル確認

```
vi /etc/openvpn/server/server.conf

verb 4
```

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

```
service rsyslog restart
```

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

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

<figure><img src="/files/lAfm3kJ6HsQnqRbiwls2" 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/openvpn.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.
