hi... i installed ELK and it works properly but now i upgrade kibana from 4.1 to 4.5 and elasticsearch 1.2 to 2.3 .error is occured
Well, is ES actually running? Can you connect to it from the machine Kibana runs on?
i worked on single machine means elasticsearch install locally.
Okay, but that doesn't answer my questions. Is ES actually running? Can you connect to it from the machine Kibana runs on?
yes . ES is running .
when i run
service ES restart.
its work properly but when i run on terminal .
for eg:-root@sab-VirtualBox:/usr/share/elasticsearch/bin# ./elasticsearch
output is :-
Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];
Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.nio.file.Files.readAttributes(Files.java:1737)
at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
at java.nio.file.Files.walkFileTree(Files.java:2662)
at org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:142)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
root@sab-VirtualBox:/usr/share/elasticsearch/bin# ^C
root@sab-VirtualBox:/usr/share/elasticsearch/bin#
when i open in browswer:-
http://localhost:9200/
output is:-
Unable to connect
Firefox can't establish a connection to the server at localhost:9200.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
when i create config file inn logstash the out put is:-
root@sab-VirtualBox:/etc/logstash/conf.d# /opt/logstash/bin/logstash -e 'input { stdin { } } output { elasticsearch { hosts => localhost } }'
hi how r u?
Settings: Default pipeline workers: 1
Connection refused {:class=>"Manticore::SocketException", :level=>:error}
Logstash startup completed
Attempted to send a bulk request to Elasticsearch configured at '["http://localhost:9200/"]', but Elasticsearch appears to be unreachable or down! {:error_message=>"Connection refused", :class=>"Manticore::SocketException", :client_config=>{:hosts=>["http://localhost:9200/"], :ssl=>nil, :transport_options=>{:socket_timeout=>0, :request_timeout=>0, :proxy=>nil, :ssl=>{}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::Manticore, :logger=>nil, :tracer=>nil, :reload_connections=>false, :retry_on_failure=>false, :reload_on_failure=>false, :randomize_hosts=>false}, :level=>:error}
Attempted to send a bulk request to Elasticsearch configured at '["http://localhost:9200/"]', but Elasticsearch appears to be unreachable or down! {:error_message=>"Connection refused", :class=>"Manticore::SocketException", :client_config=>{:hosts=>["http://localhost:9200/"], :ssl=>nil, :transport_options=>{:socket_timeout=>0, :request_timeout=>0, :proxy=>nil, :ssl=>{}}, :transport_class=>Elasticsearch::Transport::Transport::HTTP::Manticore, :logger=>nil, :tracer=>nil, :reload_connections=>false, :retry_on_failure=>false, :reload_on_failure=>false, :randomize_hosts=>false}, :level=>:error}
@sarbjeet your ES isn't working fine. Check the configuration file for same and then try connecting Kibana to it.
first i working on older version then it works properly when then i upgrade version from older to latest. then this problem start
Make sure that you shutdown the ES before making any up-gradations. I hope so this might work fine
yes . ES is running .
when i run
service ES restart.
its work properly but when i run on terminal .
for eg:-root@sab-VirtualBox:/usr/share/elasticsearch/bin# ./elasticsearch
output is :-
Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];
Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
Never mind if it works when you run it in a terminal. Focus on getting it working as a service because that's how it's actually going to be running. So service elasticsearch restart
is successful, yes? Does http://localhost:9200/ work then? If not, what's in the Elasticsearch logs in /var/log/elasticsearch?
in my ES config file:-
network.host=localhost.
ans other lines are commented
root@sab-VirtualBox:/var/log/elasticsearch# ls
elasticsearch_deprecation.log
elasticsearch_index_indexing_slowlog.log
elasticsearch_index_search_slowlog.log
elasticsearch.log
elasticsearch.log.2016-04-19
elasticsearch.log.2016-04-26
elasticsearch.log.2016-04-27
elasticsearch.log.2016-04-28
elasticsearch.log.2016-04-29
elasticsearch.log.2016-05-03
elasticsearch.log.2016-05-04
elasticsearch.log.2016-05-05
elasticsearch.log.2016-05-06
elasticsearch.log.2016-05-09
elasticsearch.log.2016-05-10
elasticsearch.log.2016-05-11
elasticsearch.log.2016-05-12
elasticsearch.log.2016-05-13
elasticsearch.log.2016-05-14
elasticsearch.log.2016-05-16
elasticsearch.log.2016-05-17
elasticsearch.log.2016-05-18
elasticsearch.log.2016-05-19
elasticsearch.log.2016-05-20
Please answer my questions. I will not ask again.
So service elasticsearch restart
is successful, yes? Does http://localhost:9200/ work then?
http://localhost:9200 not working
So is the Elasticsearch process running at all (check with ps aux | grep elasticsearch
)? If not, check the end of /var/log/elasticsearch/elasticsearch.log for clues.
root@sab-VirtualBox:~# ps aux | grep elasticsearch
root 4291 0.0 0.1 15944 2296 pts/12 S+ 23:46 0:00 grep --color=auto elasticsearch
i could not understand its out put as its new for me.please help
Okay, so Elasticsearch is not running. Then please answer my second question.
You are asking very basic questions about how to use and run a Linux system. I want to spend my volunteer time helping people with Elastic-related problems and if this thread continues like this I'm going to bail.
Send the details of the log file. No one would be able to guide you without it