Add GELF support (#532)

* Implement the ability to log to a GELF server/input, via the use of pygelf.

* Fix flake8 style checks.
This commit is contained in:
Jason Lingohr
2024-08-24 11:28:55 -04:00
committed by GitHub
parent efe4893a7f
commit 11e0461b9d
4 changed files with 128 additions and 2 deletions
+9
View File
@@ -98,6 +98,11 @@ path = parsedmarc
[syslog]
server = localhost
port = 514
[gelf]
host = logger
port = 12201
mode = tcp
```
The full set of configuration options are:
@@ -345,6 +350,10 @@ The full set of configuration options are:
:::{note}
Information regarding the setup of the Data Collection Rule can be found [here](https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal).
:::
- `gelf`
- `host` - str: The GELF server name or IP address
- `port` - int: The port to use
- `mode` - str: The GELF transport type to use. Valid modes: `tcp`, `udp`, `tls`
:::{warning}
It is **strongly recommended** to **not** use the `nameservers`