Hi Christian,
Thanks for your reply, the most basic attempt I have tried is
input {
stdin {}
}
filter {}
output {
Elasticsearch via HTTP REST
elasticsearch {
host => "192.168.1.52"
protocol => "http"
}
stdout { codec => rubydebug }
}
This happily pushed data into my single node test ES, but with only a change of IP address to various of the 4 nodes failed.
The following is the mapping from the cluster, automatically created by logstash I believe.
{
"logstash-2015.07.01" : {
"aliases" : {
},
"mappings" : {
"default" : {
"dynamic_templates" : [
{
"message_field" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string"
},
"match" : "message",
"match_mapping_type" : "string"
}
},
{
"string_fields" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string",
"fields" : {
"raw" : {
"index" : "not_analyzed",
"ignore_above" : 256,
"type" : "string"
}
}
},
"match" : "",
"match_mapping_type" : "string"
}
}
],
"_all" : {
"enabled" : true,
"omit_norms" : true
},
"_source" : {
"includes" : [
"meta."
]
},
"properties" : {
"@version" : {
"type" : "string",
"index" : "not_analyzed"
},
"geoip" : {
"dynamic" : "true",
"properties" : {
"location" : {
"type" : "geo_point"
}
}
},
"meta" : {
"type" : "object",
"include_in_all" : false
}
}
},
"logs" : {
"dynamic_templates" : [
{
"message_field" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string"
},
"match" : "message",
"match_mapping_type" : "string"
}
},
{
"string_fields" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string",
"fields" : {
"raw" : {
"index" : "not_analyzed",
"ignore_above" : 256,
"type" : "string"
}
}
},
"match" : "",
"match_mapping_type" : "string"
}
}
],
"_all" : {
"enabled" : true,
"omit_norms" : true
},
"_source" : {
"includes" : [
"meta."
]
},
"properties" : {
"@timestamp" : {
"type" : "date",
"format" : "dateOptionalTime"
},
"@version" : {
"type" : "string",
"index" : "not_analyzed"
},
"geoip" : {
"dynamic" : "true",
"properties" : {
"location" : {
"type" : "geo_point"
}
}
},
"host" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
},
"message" : {
"type" : "string",
"norms" : {
"enabled" : false
}
},
"meta" : {
"type" : "object",
"include_in_all" : false
},
"tags" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
},
"useragent" : {
"properties" : {
"device" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
},
"name" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
},
"os" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
},
"os_name" : {
"type" : "string",
"norms" : {
"enabled" : false
},
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed",
"ignore_above" : 256
}
}
}
}
}
}
},
"couchbaseCheckpoint" : {
"dynamic_templates" : [
{
"store_no_index" : {
"mapping" : {
"include_in_all" : false,
"index" : "no",
"store" : "no"
},
"match" : ""
}
},
{
"message_field" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string"
},
"match" : "message",
"match_mapping_type" : "string"
}
},
{
"string_fields" : {
"mapping" : {
"index" : "analyzed",
"omit_norms" : true,
"type" : "string",
"fields" : {
"raw" : {
"index" : "not_analyzed",
"ignore_above" : 256,
"type" : "string"
}
}
},
"match" : "",
"match_mapping_type" : "string"
}
}
],
"_all" : {
"enabled" : true,
"omit_norms" : true
},
"_source" : {
"includes" : [
"meta.",
"doc."
]
},
"properties" : {
"@version" : {
"type" : "string",
"index" : "not_analyzed"
},
"doc" : {
"include_in_all" : false,
"properties" : {
"uuid" : {
"type" : "string",
"index" : "no",
"include_in_all" : false
}
}
},
"geoip" : {
"dynamic" : "true",
"properties" : {
"location" : {
"type" : "geo_point"
}
}
},
"meta" : {
"type" : "object",
"include_in_all" : false
}
}
}
},
"settings" : {
"index" : {
"creation_date" : "1435762267716",
"uuid" : "UL3VPr5sTomBWt_KBS0RqA",
"number_of_replicas" : "1",
"number_of_shards" : "5",
"refresh_interval" : "5s",
"version" : {
"created" : "1060099"
}
}
},
"warmers" : {
}
}
}