Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node to Slack #25

Open
ahmedalmulki opened this issue Jun 15, 2023 · 1 comment
Open

Node to Slack #25

ahmedalmulki opened this issue Jun 15, 2023 · 1 comment

Comments

@ahmedalmulki
Copy link

ahmedalmulki commented Jun 15, 2023

How can I export the Node logs to Superslacker events? I tried many solutions without any luck; always node writes an error to file like this "node-stderr---supervisor-SVv3Av.log" in the /var/log/supervisor folder

[supervisord]
nodaemon=true
[program:node]
directory=/home/node/app
command=node app.js
autostart=true
autorestart=true
redirect_stderr=true
[eventlistener:superslacker]
command=superslacker --webhook="https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxx" --channel="#alert"
events=PROCESS_STATE,TICK_60
buffer_size=200 

I get the supervisor error log to my slack channel but not the node log

@slara slara pinned this issue Jun 15, 2023
@astrooom
Copy link

This feature would be nuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants