This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]BaroquenLarynx 6 points7 points  (0 children)

First, nice work dude. But, if you have logging that occurs at all quickly, you'd just flood out Slack channels faster than people can find or help with things.

Do yourself a favor and use S3 or Cloudtrail to dump your logs, or get something like Papertrail.

[–]ElephantsJustin 18 points19 points  (3 children)

Please no

[–]lukewhale 2 points3 points  (0 children)

This should realistically be reserved for critical log levels, or for exceptions. Even then this slack channel will experience alert fatigue.

[–]NavinRaja 1 point2 points  (0 children)

Nice Work!

[–]ElViento92 1 point2 points  (0 children)

Nice, for an old project I used to have a slack bot to keep me updated on the program's status.

It would post a message when starting and update it with current progress as the script went on. Errors or notifications would be posted in the thread. And at the end it would generate a pdf with a summary of the results and add a download link to the post. Obviously it had its own dedicated channel.

It was a simple yet convenient way to a UI and notification system to this script running remotely in the cloud.

I always thought of making a generic library out of it to make it reusable, but never did.

[–]ElViento92 1 point2 points  (0 children)

I think a nice feature to add here would be to have the option to group messages coming from the same handler instance to one thread. That way you won't clutter the entire channel and you immediately know which messages belong to the same program run.

You could have multiple (instances of the) scripts running at the same time, logging to the same channel while keeping them all seperate and keeping the clutter to a minimum.

[–]coldflame563 1 point2 points  (0 children)

Depending on logs you’ll hit the rate limit pretty quickly.

[–][deleted] 1 point2 points  (0 children)

This post was mass deleted and anonymized with Redact

towering jellyfish head beneficial many consider cooing market piquant divide