Hi,
Is there a possibility to configure the logging.yml that log file a rolled
by size (instead of dailyRollingFile)?
Is there a documentation of all logging options anywhere?
Thanks in advance, Ulli
--
Hi,
Is there a possibility to configure the logging.yml that log file a rolled
by size (instead of dailyRollingFile)?
Is there a documentation of all logging options anywhere?
Thanks in advance, Ulli
--
By default elasticsearch is using log4j. So, the logging.yml file is
basically standard log4j.properties file only translated from .properties
format into YAML format and with all log4j. prefixes omitted. Basically
something like
rootLogger: INFO, console, file
logger:
action: DEBUG
.....
in standard log4j.properties file would look like
log4j.rootLogger=INFO, console, file
log4j.logger.action=DEBUG
.....
The log4j configuration is explained
here: Apache log4j 1.2 - Short introduction to log4j
To setup log file rolled by size, you need to replace dailyRollingFile
appender with rollingFilehttp://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.htmlappender and remove datePattern. For example:
appender:
.....
file:
type: rollingFile
file: ${path.logs}/${cluster.name}.log
maxFileSize: 10000000
maxBackupIndex: 10
layout:
type: pattern
conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n"
On Friday, November 9, 2012 5:44:49 AM UTC-5, Ulli wrote:
Hi,
Is there a possibility to configure the logging.yml that log file a rolled
by size (instead of dailyRollingFile)?
Is there a documentation of all logging options anywhere?Thanks in advance, Ulli
--
Thank you.
--
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.