Skip to content

Node to Slack #25

Description

@ahmedalmulki

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions