Skip to content

Instantly share code, notes, and snippets.

@oleksandriegorov
oleksandriegorov / postfix
Last active December 1, 2020 14:16
postfix grok patterns for graylog 3.x
# Syslog stuff
COMPONENT ([\w._\/%-]+)
COMPID postfix\/(%{DATA:instance}\/)?%{COMPONENT:component}(?:\[%{NUMBER:pid}\])?
POSTFIX (?:%{SYSLOGFACILITY} )?%{SYSLOGHOST:logsource} %{COMPID}:
# Milter
HELO (?:\[%{IP:helo}\]|%{HOST:helo}|%{DATA:helo})
MILTERCONNECT %{QUEUEID:qid}: milter-reject: CONNECT from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto}
MILTERUNKNOWN %{QUEUEID:qid}: milter-reject: UNKNOWN from %{RELAY:relay}: %{GREEDYDATA:milter_reason}; proto=%{WORD:proto}
@oleksandriegorov
oleksandriegorov / lb-manager-client.sh
Last active April 24, 2020 20:45 — forked from thomasdarimont/lb-manager-client.sh
Shell script to configure load- balancing with mod-proxy-balancer
#! /bin/sh
# Set up a default search path
PATH="/usr/bin:/bin"
CURL=`which curl`
if [ -z "$CURL" ]; then
echo "curl not found"
exit 1
fi