Skip to content

Instantly share code, notes, and snippets.

@thenetexperts
Created May 28, 2015 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thenetexperts/5749e75b325ae15ad5ae to your computer and use it in GitHub Desktop.
Save thenetexperts/5749e75b325ae15ad5ae to your computer and use it in GitHub Desktop.
symfony 2.3 monolog configuration for use with graylog2 http transport
services:
gelf.transport:
class: Gelf\Transport\HttpTransport
arguments: [%graylog_hostname%, %graylog_port%]
monolog:
handlers:
graylog:
type: gelf
publisher:
id: gelf.transport
#host:
#port
# if you dont use the service definition for http transport it will default to udp transport
parameters:
graylog_hostname: "graylog.endpoint"
graylog_port: 12001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment