Code: Select all
[root@testnls3 ~]# service logstash restart
Restarting Logstash Daemon: [ OK ]
[ OK ]
Code: Select all
[root@testnls3 ~]# Exception in thread ">output" org.elasticsearch.client.transport.NoNodeAvailableException: No node available
at org.elasticsearch.client.transport.TransportClientNodesService.execute(org/elasticsearch/client/transport/TransportClientNodesService.java:219)
at org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient.execute(org/elasticsearch/client/transport/support/InternalTransportIndicesAdminClient.java:85)
at org.elasticsearch.client.support.AbstractIndicesAdminClient.getTemplates(org/elasticsearch/client/support/AbstractIndicesAdminClient.java:544)
at org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesRequestBuilder.doExecute(org/elasticsearch/action/admin/indices/template/get/GetIndexTemplatesRequestBuilder.java:41)
at org.elasticsearch.action.ActionRequestBuilder.execute(org/elasticsearch/action/ActionRequestBuilder.java:85)
at org.elasticsearch.action.ActionRequestBuilder.execute(org/elasticsearch/action/ActionRequestBuilder.java:59)
at org.elasticsearch.action.ActionRequestBuilder.get(org/elasticsearch/action/ActionRequestBuilder.java:67)
at java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:606)
at RUBY.template_exists?(/usr/local/nagioslogserver/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:231)
at RUBY.template_install(/usr/local/nagioslogserver/logstash/lib/logstash/outputs/elasticsearch/protocol.rb:21)
at RUBY.register(/usr/local/nagioslogserver/logstash/lib/logstash/outputs/elasticsearch.rb:259)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
at RUBY.outputworker(/usr/local/nagioslogserver/logstash/lib/logstash/pipeline.rb:220)
at RUBY.start_outputs(/usr/local/nagioslogserver/logstash/lib/logstash/pipeline.rb:152)
at java.lang.Thread.run(java/lang/Thread.java:745)
Code: Select all
[root@testnls3 ~]# netstat -na |grep LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::2056 :::* LISTEN
tcp 0 0 :::5544 :::* LISTEN
tcp 0 0 :::2057 :::* LISTEN
tcp 0 0 ::ffff:127.0.0.1:9200 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::9300 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::3515 :::* LISTEN
unix 2 [ ACC ] STREAM LISTENING 6509 @/com/ubuntu/upstart
[root@testnls3 ~]#
Code: Select all
[root@testnls3 ~]# cat /usr/local/nagioslogserver/logstash/etc/conf.d/000_inputs.conf
#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Wed, 04 Mar 2015 19:35:40 -0500
#
#
# Global inputs
#
input {
syslog {
type => 'syslog'
port => 5544
}
tcp {
type => 'eventlog'
port => 3515
codec => json {
charset => 'CP1252'
}
}
tcp {
type => 'import_raw'
tags => 'import_raw'
port => 2056
}
tcp {
type => 'import_json'
tags => 'import_json'
port => 2057
codec => json
}
}
#
# Local inputs
#
[root@testnls3 ~]#
Code: Select all
[root@testnls3 ~]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Thu Feb 12 18:24:24 2015
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2057 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 2056 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5544 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3515 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 9300:9400 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 5000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 514 -j ACCEPT
COMMIT
# Completed on Thu Feb 12 18:24:24 2015
[root@testnls3 ~]#
Code: Select all
[root@testnls3 ~]# tail /var/log/logstash/logstash.log
log4j, [2015-03-06T12:51:05.649] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:10.650] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:15.652] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:20.654] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:25.655] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:30.657] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:35.659] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:40.663] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:45.672] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
log4j, [2015-03-06T12:51:50.689] WARN: org.elasticsearch.client.transport: [a0d0b751-e485-4ab8-b63f-c6a913b96a60] node [#transport#-1][testnls3][inet[localhost/127.0.0.1:9300]] not part of the cluster Cluster [bbe627a5-936a-46e9-a076-2fdc7bf43850], ignoring...
[root@testnls3 ~]#