class Fastly::Syslog

An endpoint to stream syslogs to

Attributes

address[RW]

A magic field - will automagically be set to whichever of ipv4, ipv6 or hostname is currently set.

Conversely if you set the address field then the correct field from ipv4, ipv6 or hostname will be set.

comment[RW]

a free form comment field

format[RW]

Format to log like in apache format

format_version[RW]

The version of the custom logging format used for the configured endpoint. Can be either 1 (the default, version 1 log format) or 2 (the version 2 log format).

hostname[RW]

the hostname to to stream logs to (this, ipv4 or ipv6 must be set)

ipv4[RW]

the ipv4 address of the host to stream logs to (this, hostname or ipv6 must be set)

ipv6[RW]

the ipv6 address of the host to stream logs to (this, hostname or ipv4 must be set)

message_type[RW]

How the message should be formatted. Can be either classic (RFC 3164 syslog prefix), loggly (RFC 5424 structured syslog), logplex (Heroku-style length prefixed syslog), or blank (No prefix. Useful for writing JSON and CSV).

name[RW]

The domain name of this domain

placement[RW]

Where in the generated VCL the logging call should be placed

port[RW]

the port to stream logs to (defaults to 514)

response_condition[RW]

name of a response_condition to filter the log on, if empty it always logs

service_id[RW]

The id of the service this belongs to.

tls_ca_cert[RW]
tls_hostname[RW]

Hostname used to verify the certificate. It can either be the CN or be in subAltNames. Not required.

token[RW]

Whether to prepend each message with a specific token.

use_tls[RW]

Establish a TLS connection when connecting

version[RW]

The number of the version this belongs to.

Public Class Methods

path() click to toggle source

:attr: tls_ca_cert

Use this pem formatted certificate as the CA cert to verify the syslog server's certificate

# File lib/fastly/syslog.rb, line 107
def self.path
  'logging/syslog'
end