R
R
ruboss2015-10-03 14:49:34
Java
ruboss, 2015-10-03 14:49:34

How to turn off logs in elasticsearch java?

How to disable logs in elasticsearch in java

[main] INFO org.elasticsearch.node - [Yuriko Oyama] version[1.7.2], pid[6872], build[e43676b/2015-09-14T09:49:53Z]
[main] INFO org.elasticsearch.node - [Yuriko Oyama] initializing ...
[main] INFO org.elasticsearch.plugins - [Yuriko Oyama] loaded [], sites []
[main] INFO org.elasticsearch.env - [Yuriko Oyama] using [1] data paths, mounts , net usable_space [110.8gb], net total_space [200.4gb], types [NTFS]
[main] WARN org.elasticsearch.bootstrap - JNA not found. native methods will be disabled.
[main] INFO org.elasticsearch.node - [Yuriko Oyama] initialized
[main] INFO org.elasticsearch.node - [Yuriko Oyama] starting ...
[main] INFO org.elasticsearch.transport - [Yuriko Oyama] bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address {inet[/192.168.1.239:9301]}
[main] INFO org.elasticsearch.discovery - [Yuriko Oyama] elasticsearch/u3lDDHPfQfSgvRoQHCYFuw
[elasticsearch[Yuriko Oyama][clusterService#updateTask][T#1]] INFO org.elasticsearch.cluster.service - [Yuriko Oyama] detected_master [Anthropomorpho][tGzYxQShToCQOriUB05Cog][ruboss-pk][inet[/192.168.1.239:9300]], added {[Anthropomorpho][tGzYxQShToCQOriUB05Cog][ruboss-pk][inet[/192.168.1.239:9300]],}, reason: zen-disco-receive(from master ])
[main] INFO org.elasticsearch.http - [Yuriko Oyama] bound_address {inet[/0:0:0:0:0:0:0:0:9201]}, publish_address {inet[/192.168.1.239:9201]}
[main] INFO org.elasticsearch.node - [Yuriko Oyama] started
is created = false
[main] INFO org.elasticsearch.node - [Yuriko Oyama] stopping ...
[elasticsearch[Yuriko Oyama][generic][T#1]] WARN org.elasticsearch.indices.cluster - [Yuriko Oyama]  marking and sending shard failed due to [failed recovery]
[elasticsearch[Yuriko Oyama][generic][T#2]] WARN org.elasticsearch.cluster.action.shard - [Yuriko Oyama] failed to send failed shard to [Anthropomorpho][tGzYxQShToCQOriUB05Cog][ruboss-pk][inet[/192.168.1.239:9300]]
[main] INFO org.elasticsearch.node - [Yuriko Oyama] stopped
[main] INFO org.elasticsearch.node - [Yuriko Oyama] closing ...
[main] INFO org.elasticsearch.node - [Yuriko Oyama] closed

any changes in the logging.yml file do not help
List<Logger> loggers = Collections.<Logger>list(LogManager.getCurrentLoggers());
    loggers.add(LogManager.getRootLogger());
    for ( Logger logger : loggers ) {
        logger.setLevel(Level.OFF);
    }

also gives nothing
gentlemen, what the hell is this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zdravnik, 2015-10-28
@zdravnik

I join the question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question