syslog-ng pushbullet destination
Pushbullet logging destination for syslog-ng. This Python module enables sending log messages to Pushbullet clients.
Installation
sudo ./setup.py install
Example
You can use syslogng-pushbullet
to get a notification to your phone whenever
sshd
accepts a key:
destination pushbullet {
python(
class("syslogng_pushbullet.PushbulletDestination")
on-error("fallback-to-string")
options(
api_key("Your Pushbullet API key")
device("Device nickname")
)
);
};
filter ssh_accept {
program("sshd") and match("^Accepted publickey" value("MESSAGE"))
};
log { source(src); filter(ssh_accept); destination(pushbullet); };