小编vde*_*vos的帖子

在ElasticSearch中省略默认的Logstash字段

处理数据后:输入| 过滤器| 输出> ElasticSearch它存储的格式有点像:

"_index": "logstash-2012.07.02",
"_type": "stdin",
"_id": "JdRaI5R6RT2do_WhCYM-qg",
"_score": 0.30685282,
"_source": {
    "@source": "stdin://dist/",
    "@type": "stdin",
    "@tags": [
        "tag1",
        "tag2"
    ],
    "@fields": {},
    "@timestamp": "2012-07-02T06:17:48.533000Z",
    "@source_host": "dist",
    "@source_path": "/",
    "@message": "test"
}
Run Code Online (Sandbox Code Playgroud)

我在特定字段中过滤/存储大部分重要信息,是否可以省略默认字段,如:@source_path和@source_host?在不久的将来,它将每月存储80亿个日志,我想在排除这个默认字段的情况下运行一些性能测试(我只是不使用这些字段).

field elasticsearch logstash

5
推荐指数
2
解决办法
6389
查看次数

标签 统计

elasticsearch ×1

field ×1

logstash ×1