Hello Everyone,
I get following warning when I start elasticsearch.
$ elasticsearch -Des.config=/etc/elasticsearch/elasticsearch.yml -f
log4j:WARN No appenders could be found for logger (common.jna).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
and "elasticsearch" doesn't start.
$ cat /etc/elasticsearch/elasticsearch.yml
The cluster name
cluster:
name: search.example.com
Path Settings
path:
conf: /etc/elasticsearch/elasticsearch.yml
data: /var/lib/elasticsearch
work: /tmp/elasticsearch
logs: /var/log/elasticsearch
Force all memory to be locked, forcing the JVM to never swap
bootstrap.mlockall: true
Network Settings
network:
host: odin.example.com
Gateway Settings
gateway:
type: fs
fs:
location: /mnt/elasticmnt
common:
jna: DEBUG
$ cat /etc/elasticsearch/logging.yml
rootLogger: INFO, console, file
logger:
log action execution errors for easier debugging
action: DEBUG
com.example: WARN
gateway
gateway: DEBUG
discovery
discovery: TRACE
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"