Hi there,
I'm newbie to elastic and I'm trying to setup topbeat to ship logs to logstash. I have installed filebeat on my client and it can ship logs to logstash.
Topbeat logs from client -
2017-08-14T13:04:05-04:00 DBG output worker: publish 262 events
2017-08-14T13:04:05-04:00 DBG Try to publish 262 events to logstash with window size 265
2017-08-14T13:04:05-04:00 DBG 262 events out of 262 events sent to logstash. Continue sending ...
2017-08-14T13:04:05-04:00 DBG send completed
Logstash logs from ELK host -
#<LogStash::Event:0x9fa54f4 @metadata_accessors=#<LogStash::Util::Accessors:0x65add25c @store={"type"=>"filesystem", "beat"=>"topbeat"}, @lut={"[type]"=>[{"type"=>"filesystem", "beat"=> topbeat"}, "type"], "[beat]"=>[{"type"=>"filesystem", "beat"=>"topbeat"}, "beat"]}>, @cancelled=false, @data={"fs"=>{"device_name"=>"tmpfs", "total"=>414363648, "used"=>0, "used_p"=>0, "free"=>414363648, "avail"=>414363648, "files"=>505813, "free_files"=>505809, "mount_point"=>"/run/user/1000"}, "count"=>1, "beat"=>{"hostname"=>"devlog", "name"=>"devlog"}, "@timestamp"=>"2017-08-14T16:26:00.395Z", "type"=>"filesystem", "@version"=>"1", "host"=>"devlog", "tags"=>["beats_input_raw_event"]}, @metadata={"type"=>"filesystem", "beat"=>"topbeat"}, @accessors=#<LogStash::Util::Accessors:0x71c47fb4 @store={"fs"=>{"device_name"=>"tmpfs", "total"=>414363648, "used"=>0, "used_p"=>0, "free"=>414363648, "avail"=>414363648, "files"=>505813, "free_files"=>505809, "mount_point"=>"/run/user/1000"}, "count"=>1, "beat"=>{"hostname"=>"devlog", "name"=>"devlog"}, "@timestamp"=>"2017-08-14T16:26:00.395Z", "type"=>"filesystem", "@version"=>"1", "host"=>"devlog", "tags"=>["beats_input_raw_event"]}, @lut={"[beat][hostname]"=>[{"hostname"=>"devlog", "name"=>"devlog"}, "hostname"], "host"=>[{"fs"=>{"device_name"=>"tmpfs", "total"=>414363648, "used"=>0, "used_p"=>0, "free"=>414363648, "avail"=>414363648, "files"=>505813, "free_files"=>505809, "mount_point"=>"/run/user/1000"}, "count"=>1, "beat"=>{"hostname"=>"devlog", "name"=>"devlog"}, "@timestamp"=>"2017-08-14T16:26:00.395Z", "type"=>"filesystem", "@version"=>"1", "host"=>"devlog", "tags"=>["beats_input_raw_event"]}, "host"], "tags"=>[{"fs"=>{"device_name"=>"tmpfs", "total"=>414363648, "used"=>0, "used_p"=>0, "free"=>414363648, "avail"=>414363648, "files"=>505813, "free_files"=>505809, "mount_point"=>"/run/user/1000"}, "count"=>1, "beat"=>{"hostname"=>"devlog", "name"=>"devlog"}, "@timestamp"=>"2017-08-14T16:26:00.395Z", "type"=>"filesystem", "@version"=>"1", "host"=>"devlog", "tags"=>["beats_input_raw_event"]}, "tags"], "[type]"=>[{"fs"=>{"device_name"=>"tmpfs", "total"=>414363648, "used"=>0, "used_p"=>0, "free"=>414363648, "avail"=>414363648, "files"=>505813, "free_files"=>505809, "mount_point"=>"/run/user/1000"}, "count"=>1, "beat"=>{"hostname"=>"devlog", "name"=>"devlog"}, "@timestamp"=>"2017-08-14T16:26:00.395Z", "type"=>"filesystem", "@version"=>"1", "host"=>"devlog", "tags"=>["beats_input_raw_event"]}, "type"]}>>], :response=>{"index"=>{"_index"=>"topbeat-2017.08.14", "_type"=>"filesystem", "_id"=>nil, "status"=>404, "error"=>{"type"=>"index_not_found_exception", "reason"=>"no such index", "resource.type"=>"index_expression", "resource.id"=>"topbeat-2017.08.14", "index"=>"topbeat-2017.08.14"}}}, :level=>:warn
}
With curl on ELK host it returns 0 hits.
root@devlog:/home# curl -XGET 'http://host_name:9200/topbeat-*/_search?pretty'
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 0,
"successful" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : 0.0,
"hits" : [ ]
}
}
Not sure what the issue is. I have SSL configured correctly on both hosts.
*to some extent I can relate my issue to Trouble getting topbeat data into elasticsearch via logstash