Hi Folks,
Blundering around with an ELK stack I've managed to break it, yay me!
I was trying to disable the _all field as (I believe) it basically
duplicates all the data I'm already storing, so after way too much googling
I came up with this,
curl -XPUT http://localhost:9200/_template/logstash_per_index -d '{
"template" : "logstash*",
"settings" : {
"number_of_shards" : 2,
"index.cache.field.type" : "soft",
"index.refresh_interval" : "5s",
"index.store.compress.stored" : true,
"index.query.default_field" : "@message"
},
"mappings" : {
"default" : {
"_all" : {"enabled" : false},
"properties" : {
"@fields" : {
"type" : "object",
"dynamic": true,
"path": "full",
"properties" : {
"clientip" : { "type": "ip"}
}
},
"@message": { "type": "string", "index": "analyzed" },
"@source": { "type": "string", "index": "analyzed" },
"@source_host": { "type": "string", "index": "analyzed" },
"@source_path": { "type": "string", "index": "analyzed" },
"@tags": { "type": "string", "index": "analyzed" },
"@timestamp": { "type": "date", "index": "analyzed" },
"@type": { "type": "string", "index": "analyzed" }
}
}
}
}
'
And now kibana isn't showing anything from the time the mapping was
applied, older data is fine. I can see documents and data going into the
stack via Bigdesk and Head but I can't visualise them with kibana. Can
anyone help ? What did I do wrong ?
At the moment I'd settle for reapplying the default out-of-the-box mappings
if I could find them anywhere, or if I knew how to do it
Hi Folks,
Blundering around with an ELK stack I've managed to break it, yay me!
I was trying to disable the _all field as (I believe) it basically
duplicates all the data I'm already storing, so after way too much googling
I came up with this,
curl -XPUT http://localhost:9200/_template/logstash_per_index -d '{
"template" : "logstash*",
"settings" : {
"number_of_shards" : 2,
"index.cache.field.type" : "soft",
"index.refresh_interval" : "5s",
"index.store.compress.stored" : true,
"index.query.default_field" : "@message"
},
"mappings" : {
"default" : {
"_all" : {"enabled" : false},
"properties" : {
"@fields" : {
"type" : "object",
"dynamic": true,
"path": "full",
"properties" : {
"clientip" : { "type": "ip"}
}
},
"@message": { "type": "string", "index": "analyzed" },
"@source": { "type": "string", "index": "analyzed" },
"@source_host": { "type": "string", "index": "analyzed" },
"@source_path": { "type": "string", "index": "analyzed" },
"@tags": { "type": "string", "index": "analyzed" },
"@timestamp": { "type": "date", "index": "analyzed" },
"@type": { "type": "string", "index": "analyzed" }
}
}
}
}
'
And now kibana isn't showing anything from the time the mapping was
applied, older data is fine. I can see documents and data going into the
stack via Bigdesk and Head but I can't visualise them with kibana. Can
anyone help ? What did I do wrong ?
At the moment I'd settle for reapplying the default out-of-the-box
mappings if I could find them anywhere, or if I knew how to do it
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.