Ah ok that makes a little more sense. Thank you for putting that into perspective. I was able to get some info from
curl -XGET localhost:9200/_template
but I cannot seem to find how to edit an existing template.
Completly spitballing it here, but I tried this
curl -XPUT localhost:9200/_template/logstash -d '
{
"template": "*"
}
'
That changed everything in the template instead of just changing what I intended. The only thing left is
{"logstash":{"order":0,"template":"-*","settings":{},"mappings":{},"aliases":{}}}
while the original had a bunch of stuff. I think I was able to fix that part by copying the original GET request and pasting that into the curl. The only thing I changed was the "template"
section form "logstash-*"
to just "*"
. I think it will work lol I will post back when I check on some data.
curl -XGET localhost:9200/_template
{"logstash":{"order":0,"template":"*","settings":{"index":{"refresh_interval":"5s"}},"mappings":{"_default_":{"dynamic_templates":[{"message_field":{"mapping":{"fielddata":{"format":"disabled"},"index":"analyzed","omit_norms":true,"type":"string"},"match_mapping_type":"string","match":"message"}},{"string_fields":{"mapping":{"fielddata":{"format":"disabled"},"index":"analyzed","omit_norms":true,"type":"string","fields":{"raw":{"ignore_above":256,"index":"not_analyzed","type":"string"}}},"match_mapping_type":"string","match":"*"}}],"_all":{"omit_norms":true,"enabled":true},"properties":{"@timestamp":{"type":"date"},"geoip":{"dynamic":true,"properties":{"ip":{"type":"ip"},"latitude":{"type":"float"},"location":{"type":"geo_point"},"longitude":{"type":"float"}}},"@version":{"index":"not_analyzed","type":"string"}}}},"aliases":{}}}