coursehero / slacktee

slacktee is a bash script that works like tee command. Instead of writing the standard input to files, slacktee posts it to Slack.
Apache License 2.0
830 stars 95 forks source link

Messages are not dispatched from rsyslog #44

Closed ky4k0b closed 7 years ago

ky4k0b commented 7 years ago

in rsyslog.conf I have the following

:msg, contains, "NODFLT001" ^/root/slacktee-master/slacktee.sh

when the event with NODFLT appears nothing is sent to slack

Chikashi-Kato commented 7 years ago

Hi, thank you for using slacktee! I'm not familiar with rsyslog but I'm assuming it is running as its own user on your system and slacktee couldn't find the configuration file correctly. Could you try to copy your .slacktee from your home directory to /etc and rename it to slacktee.conf? If you don't like to use the host-wide configuration file, please try to copy .slacktee to rsyslog user's home directory. If you don't like both of them, you can specify your configration file by using --config option (e.g. /root/slacktee-master/slacktee.sh --config /root/.slacktee)

Chikashi-Kato commented 7 years ago

I'm closing this issue, but please feel free to let me know if you have any other questions!

ky4k0b commented 7 years ago

Thanks! The trick worked.

Chikashi-Kato commented 7 years ago

Awesome! I'm glad to hear that, ky4k0b! Thank you for the update.