Skip to content

Commit

Permalink
Merge pull request #1882 from SEKOIA-IO/fix/VMwareVCenter
Browse files Browse the repository at this point in the history
VMware: add filter for vpxd events
  • Loading branch information
squioc authored Jul 10, 2024
2 parents 5788c79 + d759653 commit 2cc0910
Showing 1 changed file with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,46 @@ Go to the [intake page](https://app.sekoia.io/operations/intakes) and create a n
## Forward logs to Sekoia.io

Please consult the [Syslog Forwarding](../../../../ingestion_methods/sekoiaio_forwarder/) documentation to forward these logs to Sekoia.io.

Create a new configuration file:

```
sudo vim ./extended_conf/11-vcenter.conf
```

with the following template:

```
$DefaultNetstreamDriverCAFile /etc/rsyslog.d/Sekoia-io-intake.pem
input(type="imtcp" port="PORT" ruleset="remoteVmwarevCenter")
template(name="SEKOIAIOTemplate" type="string" string="<%pri%>1 %timestamp:::date-rfc3339% %hostname% %app-name% %procid% LOG [SEKOIA@53288 intake_key=\"YOUR_INTAKE_KEY\"] %msg%\n")
ruleset(name="remoteVmwarevCenter"){
if($programname == "vpxd") {
action(
type="omfwd"
protocol="tcp"
target="intake.sekoia.io"
port="10514"
TCP_Framing="octet-counted"
StreamDriver="gtls"
StreamDriverMode="1"
StreamDriverAuthMode="x509/name"
StreamDriverPermittedPeers="intake.sekoia.io"
Template="SEKOIAIOTemplate"
)
}
}
```

Please change using the YOUR_INTAKE_KEY accordingly, as well as, the PORT.

Update the `docker-compose.yml` file of the Sekoia.io forwarder to mount the extended conf:

```
volumes:
- ./intakes.yaml:/intakes.yaml
...
- ./extended_conf:/extended_conf
```

0 comments on commit 2cc0910

Please sign in to comment.