Hi Guys,
I have tomcat installed on this server and i also installed filebeat version 6 on the same tomcat server. But I’m not able to make connection to kibana. All the elasticsearch, kibana and logstash are configured on same server 192.168.185.143
Filebeat log : I have specified kibana url ip in filebeat.yml
2019-05-12T09:10:41.301-0700 INFO instance/beat.go:280 Setup Beat: filebeat; Version: 7.0.0
2019-05-12T09:10:41.302-0700 INFO [publisher] pipeline/module.go:97 Beat name: tomcat-beat
2019-05-12T09:10:41.303-0700 INFO kibana/client.go:118 Kibana url: http://localhost:5601
2019-05-12T09:10:41.306-0700 ERROR instance/beat.go:802 Exiting: error connecting to Kibana: fail to get the Kibana version: HTTP GET request to http://localhost:5601/api/status fails: fail to execute the HTTP GET request: Get http://localhost:5601/api/status: dial tcp 127.0.0.1:5601: connect: connection refused. Response: .
Logstash logs :
[2018-12-10T02:23:01,342][WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"filebeat-2019.05.12", :_type=>"_doc", :_routing=>nil}, #LogStash::Event:0x2182d719], :response=>{"create"=>{"_index"=>"filebeat-2019.05.12", "_type"=>"_doc", "id"=>"AWeW_206fmSo3qcbXu57", "status"=>400, "error"=>{"type"=>"invalid_type_name_exception", "reason"=>"Document mapping type name can't start with ''"}}}}
Elasticsearch Log :
[2018-12-09 16:17:02,589][INFO ][node ] [Hardcore] version[2.4.6], pid[39547], build[5376dca/2017-07-18T12:17:44Z]
[2018-12-09 16:17:02,589][INFO ][node ] [Hardcore] initializing ...
[2018-12-09 16:17:03,120][INFO ][plugins ] [Hardcore] modules [reindex, lang-expression, lang-groovy], plugins , sites
[2018-12-09 16:17:03,188][INFO ][env ] [Hardcore] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [10.5gb], net total_space [12.9gb], spins? [unknown], types [rootfs]
[2018-12-09 16:17:03,188][INFO ][env ] [Hardcore] heap size [1015.6mb], compressed ordinary object pointers [true]
[2018-12-09 16:17:05,060][INFO ][node ] [Hardcore] initialized
[2018-12-09 16:17:05,060][INFO ][node ] [Hardcore] starting ...
[2018-12-09 16:17:05,105][INFO ][transport ] [Hardcore] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2018-12-09 16:17:05,108][INFO ][discovery ] [Hardcore] elasticsearch/iwa8ZuZ-SKK3nHAA1-eYSg
[2018-12-09 16:17:08,141][INFO ][cluster.service ] [Hardcore] new_master {Hardcore}{iwa8ZuZ-SKK3nHAA1-eYSg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2018-12-09 16:17:08,170][INFO ][gateway ] [Hardcore] recovered [0] indices into cluster_state
[2018-12-09 16:17:08,178][INFO ][http ] [Hardcore] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2018-12-09 16:17:08,178][INFO ][node ] [Hardcore] started
[2018-12-09 16:24:41,380][INFO ][node ] [Hardcore] stopping ...
[2018-12-09 16:24:41,397][INFO ][node ] [Hardcore] stopped
[2018-12-09 16:24:41,397][INFO ][node ] [Hardcore] closing ...
[2018-12-09 16:24:41,407][INFO ][node ] [Hardcore] closed
Filebeatl.yml output
filebeat.inputs:
- type: log
enabled: true
paths:- /var/log/*.log
- /var/log/secure
- /var/log/messages
- /opt/tomcat9/apache-tomcat-9.0.13/logs/catalina.out
setup.kibana:
host: "192.168.185.143:5601"
#output.elasticsearch:
hosts: ["192.168.185.143:9200"]
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["192.168.185.143:5044"]
Logstash File---------------
path.data: /var/lib/logstash
path.logs: /var/log/logstash
Elasticsearch file -----
cluster.name: Elastic-Server
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 192.168.185.143
http.port: 9200
All the services are running and i’m able to access kibana on same server.