将索引模板上传到 aws elasticsearch 服务

乔什·爱德华兹

提前致谢!

我已经用尽了谷歌!

基本上我想将索引模板 json 文件上传到 AWS Elasticsearch Service,我该怎么做?去哪儿?

这是我正在遵循的教程,它不是很具有描述性!https://www.fernandobattistella.com.br/log_processing/2016/03/13/Cloudtrail-S3-Lambda-Elasticsearch.html

瓦尔

只需运行这个,那应该可以解决问题:

curl -XPUT http://search-xxxxxxxxxxxxx.ap-xxxxxxx-1.es.amazonaws.com/_template/logstash -d '{
  "template" : "logstash-*",
  "settings" : {
    "index.refresh_interval" : "5s"
  },
  "mappings" : {
    "_default_" : {
      "_all" : {"enabled" : true, "omit_norms" : true},
      "dynamic_templates" : [ {
        "message_field" : {
          "match" : "message",
          "match_mapping_type" : "string",
          "mapping" : {
            "type" : "string", "index" : "analyzed", "omit_norms" : true,
            "fielddata" : { "format" : "enabled" }
          }
        }
      }, {
        "string_fields" : {
          "match" : "*",
          "match_mapping_type" : "string",
          "mapping" : {
            "type" : "string", "index" : "analyzed", "omit_norms" : true,
            "fielddata" : { "format" : "enabled" },
            "fields" : {
              "raw" : {"type": "string", "index" : "not_analyzed", "doc_values" : true, "ignore_above" : 256}
            }
          }
        }
      }, {
        "float_fields" : {
          "match" : "*",
          "match_mapping_type" : "float",
          "mapping" : { "type" : "float", "doc_values" : true }
        }
      }, {
        "double_fields" : {
          "match" : "*",
          "match_mapping_type" : "double",
          "mapping" : { "type" : "double", "doc_values" : true }
        }
      }, {
        "byte_fields" : {
          "match" : "*",
          "match_mapping_type" : "byte",
          "mapping" : { "type" : "byte", "doc_values" : true }
        }
      }, {
        "short_fields" : {
          "match" : "*",
          "match_mapping_type" : "short",
          "mapping" : { "type" : "short", "doc_values" : true }
        }
      }, {
        "integer_fields" : {
          "match" : "*",
          "match_mapping_type" : "integer",
          "mapping" : { "type" : "integer", "doc_values" : true }
        }
      }, {
        "long_fields" : {
          "match" : "*",
          "match_mapping_type" : "long",
          "mapping" : { "type" : "long", "doc_values" : true }
        }
      }, {
        "date_fields" : {
          "match" : "*",
          "match_mapping_type" : "date",
          "mapping" : { "type" : "date", "doc_values" : true }
        }
      }, {
        "geo_point_fields" : {
          "match" : "*",
          "match_mapping_type" : "geo_point",
          "mapping" : { "type" : "geo_point", "doc_values" : true }
        }
      } ],
      "properties" : {
        "@timestamp": { "type": "date", "doc_values" : true },
        "@version": { "type": "string", "index": "not_analyzed", "doc_values" : true },
        "geoip"  : {
          "type" : "object",
          "dynamic": true,
          "properties" : {
            "ip": { "type": "ip", "doc_values" : true },
            "location" : { "type" : "geo_point", "doc_values" : true },
            "latitude" : { "type" : "float", "doc_values" : true },
            "longitude" : { "type" : "float", "doc_values" : true }
          }
        }
      }
    }
  }
}'

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何将大量停用词上传到AWS Elasticsearch

Elasticsearch问题:无法连接AWS Elasticsearch服务

将停用词和同义词上传到Elasticsearch可以服务器

AWS仅使用ID和密钥将文件上传到S3服务器

使用rxJava将多个图像上传到AWS服务器

如何从AWS S3将视频上传到Azure媒体服务

将快照从S3还原到AWS托管的Elasticsearch时出现安全令牌服务异常

AWS-将多个Lambda日志订阅到一项ElasticSearch服务

AWS Elasticsearch域-Cloudformation模板

使用 ReactJs 将大文件(视频)上传到 nodejs 服务器和 aws s3

使用Ubuntu中的CloudWatch Log Agent将服务器日志上传到AWS CloudWatch Log中

AWS Lambda使用C#代理ElasticSearch服务

AWS ElasticSearch即服务无法通过独立的KIBANA连接

将文档上传到 FSCrawler 以在 Elasticsearch 中建立索引的正确方法

将 JSON 文件上传到 elasticsearch/kibana

使用 AWS Cloudformation 创建 Elasticsearch 服务:“创建 Elasticsearch 域并不稳定”

将图像上传到服务器

将文件上传到服务器

AWS Elasticsearch OpenDistro - 未触发滚动索引

AWS elasticsearch 禁用所有索引的复制

AWS Elasticsearch索引内存使用问题

关于将照片上传到AWS

无法将Elasticsearch作为服务启动

将策略附加到AWS Elasticsearch

将 aws lambda 权限添加到 aws elasticsearch 策略

将自定义模板上传到AWS

AWS Kinesis Firehose无法将数据索引到AWS Elasticsearch中

无法通过PHP文件上传将文件上传到AWS

AWS无服务器Lambda函数:按名称没有模块elasticsearch错误