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

Improve rsyslog documentation examples #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,19 @@ Primary use is as a syslog destination

Create ``postfix_stats.sh`` that calls postfix_stats.py with the arguments you wish to use


/etc/rsyslog.d/postfix_stats.conf
::

$ModLoad omprog
$actionomprogbinary /usr/bin/postfix_stats.sh
:syslogtag, startswith, "postfix" :omprog:;RSYSLOG_TraditionalFileFormat

/usr/bin/postfix_stats.sh
::
#!/bin/bash
/usr/bin/postfix_stats.py -d

**tail**

If you don't want to wire it up to syslog but need current stats use this.
Expand Down