Created
February 16, 2013 19:37
-
-
Save polyfractal/4968387 to your computer and use it in GitHub Desktop.
Logging.yml to enable a SocketAppender, which will be used to talk to Logstash
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
rootLogger: INFO, console, file, socketappender | |
logger: | |
# log action execution errors for easier debugging | |
action: DEBUG | |
# reduce the logging for aws, too much is logged under the default INFO | |
com.amazonaws: WARN | |
# gateway | |
#gateway: DEBUG | |
#index.gateway: DEBUG | |
# peer shard recovery | |
#indices.recovery: DEBUG | |
# discovery | |
#discovery: TRACE | |
index.search.slowlog: TRACE, index_search_slow_log_file | |
index.indexing.slowlog: TRACE, index_indexing_slow_log_file | |
additivity: | |
index.search.slowlog: false | |
index.indexing.slowlog: false | |
appender: | |
console: | |
type: console | |
layout: | |
type: consolePattern | |
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" | |
file: | |
type: dailyRollingFile | |
file: ${path.logs}/${cluster.name}.log | |
datePattern: "'.'yyyy-MM-dd" | |
layout: | |
type: pattern | |
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" | |
index_search_slow_log_file: | |
type: dailyRollingFile | |
file: ${path.logs}/${cluster.name}_index_search_slowlog.log | |
datePattern: "'.'yyyy-MM-dd" | |
layout: | |
type: pattern | |
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" | |
index_indexing_slow_log_file: | |
type: dailyRollingFile | |
file: ${path.logs}/${cluster.name}_index_indexing_slowlog.log | |
datePattern: "'.'yyyy-MM-dd" | |
layout: | |
type: pattern | |
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" | |
socketappender: | |
type: org.apache.log4j.net.SocketAppender | |
port: 9500 | |
remoteHost: localhost | |
layout: | |
type: pattern | |
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment