Skip to content

Instantly share code, notes, and snippets.

View gerardjp's full-sized avatar
🥳
Tech = Fun

Gerard gerardjp

🥳
Tech = Fun
View GitHub Profile
@gerardjp
gerardjp / Elastic - Reindexing Elastic index to new destination
Last active May 13, 2019 15:17
Elastic - Reindexing Elastic index to new destination
{
"source": {
"index": "logstash-2019.05.10"
},
"dest": {
"index": "logstash-test-2019.05.10",
"version_type": "internal"
}
}
@gerardjp
gerardjp / Elastic - Logstash test automapping
Last active May 13, 2019 15:32
Elastic - Logstash test automapping
{
"template" : "logstash-test-*",
"mappings": {
"_default_": {
"dynamic_templates": [
{
"message_field": {
"path_match": "message",
"match_mapping_type": "string",
"mapping": {