I have logstash (V - 5.4.0) installed on a local server and elasticsearch and kibana on another server (both of V - 5.4.3).
I have installed X-pack (V - 5.4.3) on elasticsearch and kibana.
but when i'm trying to load data on user elastic
using config file :
input {
file {
path => "/opt/demo.dat"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
columns => ["seq_num","name","country"]
}
}
output {
elasticsearch {
hosts => ["http://10.1.1.150:9200"]
user => "elastic"
password => "changeme"
index => "demo"
}
stdout {}
}
the data gets loaded successfully
[root@monitor logstash]# /usr/share/logstash/bin/logstash -f /opt/demo.conf --path.data /opt/dir1
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
2017-09-21T06:49:44.192Z monitor.htintra.net 1,Raj,Ind
2017-09-21T06:49:44.209Z monitor.htintra.net 2,William,Aus
2017-09-21T06:49:44.210Z monitor.htintra.net 3,Roger,USA
But i'm not able to see the index demo
curl --user elastic:changeme '10.1.1.150:9200/_cat/indices/demo?v'
getting error using the above command
{"error":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"demo","index_uuid":"_na_","index":"demo"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"demo","index_uuid":"_na_","index":"demo"},"status":404}[
And in kibana, not able to see demo index