Metricbeat创造了大量的领域

时间:2018-04-05 20:49:08

标签: elasticsearch metricbeat

我在unix服务器上安装了metricbeat,它的映射生成了大量的字段。如果有办法禁用它们?我想要一个默认索引,只为“unix”系统“模块映射和windows”windows“模块映射创建映射。

在我的yml中,我只是展示了这样的东西

metricbeat.modules:
- module: system
  period: 1m
  metricsets:
    - cpu
    - load
    - memory
    #- network
    - process
    - process_summary
    #- core
    #- diskio
    #- socket
  processes: ['.*']

- module: system
  period: 10m
  metricsets:
    - filesystem
    - fsstat
  processors:
  - drop_event.when.regexp:
      system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib)($|/)'

- module: system
  period: 15m
  metricsets:
    - uptime

感谢。

2 个答案:

答案 0 :(得分:0)

您可以自定义模块和字段。

这些是名为fields.yml的特定文件(一个全局,每个指标集一个),你必须摆弄它。

请参阅文档了解详情:

https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-metricbeat.html

https://www.elastic.co/guide/en/beats/metricbeat/5.2/creating-metricbeat-module.html#_fields_yml_2

答案 1 :(得分:0)

默认情况下,如果启用了Elasticsearch输出,Metricbeat将自动加载建议的模板文件fields.yml。因此,为了自定义字段,请编写一个包含所有必填字段的NewFieldsFile.yml文件,并将 metricbeat.yml 配置文件中的默认字段更改为:

.table-responsive {
-webkit-overflow-scrolling: touch;
direction: ltr;
}
.table-responsive > table {
direction: rtl !important;
}
table, th {
direction:rtl
}
table, tr {
direction:rtl;
}

$('.table-responsive').animate({ scrollLeft: $('.thposition1').position().left }, 500);

遵循此官方文档,它包含确切的答案,希望对您有所帮助: https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html

相关问题