Created
May 28, 2015 08:35
-
-
Save thenetexperts/5749e75b325ae15ad5ae to your computer and use it in GitHub Desktop.
symfony 2.3 monolog configuration for use with graylog2 http transport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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