https://github.com/deric/puppet-ulogd
Manage user-space logging daemon
https://github.com/deric/puppet-ulogd
Last synced: 5 months ago
JSON representation
Manage user-space logging daemon
- Host: GitHub
- URL: https://github.com/deric/puppet-ulogd
- Owner: deric
- Created: 2024-09-14T09:17:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T11:53:36.000Z (almost 2 years ago)
- Last Synced: 2025-02-24T12:07:25.314Z (over 1 year ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# puppet-ulogd
[](https://forge.puppet.com/modules/deric/ulogd) [](https://github.com/deric/puppet-ulogd/actions/workflows/test.yml)
`ulogd` is a userspace logging daemon into which you can feed netfilter data and have it log it in a flexible way, to multiple different formats and destinations.
## Usage
```puppet
include ulogd
```
Following config:
```yaml
ulogd::config:
global:
stack: log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU
log2:
group: 2
emu1:
file: /var/log/firewall.log
sync: 1
```
can be used to log iptables rules with `-j NFLOG --nflog-group 2`
```
-A INPUT -m limit --limit 1/s -p icmp -j NFLOG --nflog-group 2 --nflog-prefix "ICMP:"
```
`nflog-group` number needs to match log group in `ulogd` config.
Load only selected plugins:
```yaml
ulogd::plugins:
- ulogd_inppkt_NFLOG.so
- ulogd_output_LOGEMU.so
```