处理数据后:输入| 过滤器 | output > 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"
}
我在特定字段中过滤/存储大部分重要信息,是否可以省略默认字段,例如:@source_path 和 @source_host?在不久的将来,它将每月存储 80 亿条日志,我想在排除此默认字段的情况下运行一些性能测试(我只是不使用这些字段)。