A perl daemon which sends structured logs from the Journal to a Gelf HTTP endpoint (made for Graylog)
您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
428 B
22 行
428 B
[Unit]
|
|
Description=Systemd Journal GEL HTTP uploader
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=systemd-journal-gelf
|
|
Group=adm
|
|
ExecStart=/usr/local/bin/systemd-journal-gelf -c /etc/systemd/journal-gelf.yml
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectSystem=full
|
|
ProtectHome=yes
|
|
NoNewPrivileges=yes
|
|
MemoryLimit=200M
|
|
SyslogIdentifier=systemd-journal-gelf
|
|
Restart=on-failure
|
|
StartLimitInterval=0
|
|
RestartSec=30
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
|