Export logs

Crunchy Bridge has logging integration to allow you to send your logs from your Postgres database to another logging-as-a-service provider.

Crunchy Bridge currently supports:

  • Providers using a public certificate available within AlmaLinux 8 or 9
  • Providers using a Let's Encrypt certificate
  • Logentries
  • Papertrail
  • Sumo Logic

All logs are sent over TLS and verify the provider's certificate.

Log destinations

A log destination defines where the Bridge platform should export the logs for a given cluster.

You can set up a new log destination in the Logging section of a cluster's settings. The setup guide will walk you step by step through integrating with one of the major logging providers.

Logging can also be configured from the CLI with cb logdest.

Provider setup

We have done our best to capture the steps for setting up each logging provider listed below. However, we know these steps may become stale as each provider iterates on their processes. Please let us know if you have any difficulty with these instructions.

Honeybadger

Host: in.honeybadger.io
Port: 6514

Template:
<$PRI>1 $ISODATE $HOST $PROGRAM $PID ${MSGID:--} [honeybadger@61642 api_key=\"Your project API key\"] $MSG\n

Honeybadger documentation

New Relic

Host: newrelic.syslog.nr-data.net
Port: 6514

Template: YOUR_LICENSE_KEY <${PRI}>1 ${ISODATE} ${HOST:--} ${PROGRAM:--} ${PID:--} ${MSGID:--} ${SDATA:--} $MSG\n

New Relic documentation

Datadog

Host: intake.logs.datadoghq.com
Port: 10516
Template: YOURAPIKEY <${PRI}>1 ${ISODATE} ${HOST:--} ${PROGRAM:--} ${PID:--} ${MSGID:--} ${SDATA:--} $MSG\n

Datadog documentation

Mezmo (formerly LogDNA)

Host: syslog-a.logdna.com
Port: 6514

Template: <${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [logdna@48950 key=\"**INSERT-YOUR-INGESTION-KEY-HERE**\"] $MSG\n

Mezmo documentation

Logentries (Rapid7, InsightOps)

Host: data.logentries.com Port: 443

Template: TOKEN_HERE $ISODATE $HOST $MSG\n

Logentries documentation

Loggly (SolarWinds)

Host: logs-01.loggly.com
Port: 6514

Template: <${PRI}>1 ${ISODATE} ${HOST} ${PROGRAM} ${PID} ${MSGID} [TOKEN@41058 tag=\"TAG\" ] $MSG\n

Loggly documentation

Better Stack (Formerly Logtail)

Host: in.logtail.com
Port: 6514

Template: <$PRI>1 $ISODATE $HOST $PROGRAM $PID ${MSGID:--} [logtail@11993 source_token=\"YOUR_LOGTAIL_SOURCE_TOKEN\"] $MSG\n

Better Stack documentation

Papertrail

Host: logsN.papertrailapp.com (Where N is some integer)
Port: Defined per-user; see Papertrail documentation

Template: See Papertrail documentation. The default is accepted. Some plans support IP restrictions (which may work with AWS if IPv6 is supported)

Papertrail documentation

Sumo Logic

Host: syslog.collection.YOUR_DEPLOYMENT.sumologic.com
Port: 6514

Template: <$PRI>1 $ISODATE $HOST $PROGRAM $PID $MSGID [TOKEN@41123] $MSG\n

Sumo Logic documentation

Don't see your provider listed and need help getting set up? You can contact support for assistance.

Additional log settings

Learn more about the available log settings in our logging section or check out the Postgres documentation.