cea-sec / openwec

An implementation of a Windows Event Collector server running on GNU/Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example config lacks required [logging] field

zu3st opened this issue · comments

On following the Getting-Started Guide, storing the given config and calling openwec db init as instructed fails with the following error:

```toml
# /etc/openwec.conf.toml
[server]
keytab = "/etc/wec.windomain.local.keytab"
[database]
type = "SQLite"
# You need to create /var/db/openwec yourself
path = "/var/db/openwec/db.sqlite"
[[collectors]]
hostname = "wec.windomain.local"
listen_address = "0.0.0.0"
[collectors.authentication]
type = "Kerberos"
service_principal_name = "http/wec.windomain.local@WINDOMAIN.LOCAL"
```

An error occurred: Failed to retrieve configuration: TOML parse error at line 1, column 1
  |
1 | # /etc/openwec.conf.toml
  | ^
missing field `logging`

Adding the line

[logging]

to the config resolves the issue.

Hi! Nice catch 😄

This has been fixed in #108 (6b0d199) which should be merged very soon.

#108 has been merged.