Skip to content

Instantly share code, notes, and snippets.

@ikuradon
Created December 24, 2015 15:04
Show Gist options
  • Save ikuradon/0a359c1c8106b1cd0632 to your computer and use it in GitHub Desktop.
Save ikuradon/0a359c1c8106b1cd0632 to your computer and use it in GitHub Desktop.
foltia anime lockerがrsyslogに出力するメッセージを加工する何か
...
# ### end of the forwarding rule ###
$IncludeConfig /etc/rsyslog.d/*.conf
$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
#!/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