Created
December 24, 2015 15:04
-
-
Save ikuradon/0a359c1c8106b1cd0632 to your computer and use it in GitHub Desktop.
foltia anime lockerがrsyslogに出力するメッセージを加工する何か
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# ### end of the forwarding rule ### | |
$IncludeConfig /etc/rsyslog.d/*.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ModLoad omprog | |
$SystemLogRateLimitInterval 0 | |
$ActionOMProgBinary /opt/foltiaPush | |
$template JSONDefault, "{\"message\":\"%msg:::json%\",\"fromhost\":\"%HOSTNAME:::json%\",\"facility\":\"%syslogfacility-text%\",\"priority\":\"%syslogpriority-text%\",$ | |
:programname, startswith, "foltia" :omprog:;JSONDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read f | |
echo ${f} >> /opt/LOG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment