Soft / syslogng-pushbullet

Pushbullet destination for syslog-ng

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syslog-ng pushbullet destination

License: MIT

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); };

About

Pushbullet destination for syslog-ng

License:MIT License


Languages

Language:Python 100.0%