https://github.com/soft/syslogng-pushbullet
Pushbullet destination for syslog-ng
https://github.com/soft/syslogng-pushbullet
logging monitoring notifications pushbullet python2 syslog-ng
Last synced: 10 months ago
JSON representation
Pushbullet destination for syslog-ng
- Host: GitHub
- URL: https://github.com/soft/syslogng-pushbullet
- Owner: Soft
- License: mit
- Created: 2018-08-20T17:59:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-20T20:25:02.000Z (over 7 years ago)
- Last Synced: 2025-01-28T04:29:07.542Z (12 months ago)
- Topics: logging, monitoring, notifications, pushbullet, python2, syslog-ng
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# syslog-ng pushbullet destination
[](https://opensource.org/licenses/MIT)
[Pushbullet](https://www.pushbullet.com) logging destination for [syslog-ng](https://www.syslog-ng.com).
This Python module enables sending log messages to Pushbullet clients.
## Installation
``` shell
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); };
```