【问题标题】:logstash filter for metricbeatmetricbeat 的 logstash 过滤器
【发布时间】:2017-09-04 15:03:20
【问题描述】:

我正在尝试使用 logstash-filter-alter condrewrite 选项重命名进程指标数据(metricbeat 输入)

filter {
  if [metricset][name] == "process" {
    alter {
      condrewrite => ["system.process.name", "php", "queue"]
    }
  }
}

但它不起作用。我不确定问题出在 if 语句还是 condrewrite 语句上。 我正在使用 ELK 堆栈 5.5.2

【问题讨论】:

  • 你试过%{[system][process][name]}吗?
  • @Imma 我试过condrewrite => ["%{[system][process][name]}", "php", "queue"],但没有帮助。没有引号,logstash 无法启动。

标签: logstash metricbeat


【解决方案1】:

这应该可行:

filter {
  alter {
      condrewrite => ["[system][process][name]", "php", "queue"]
  }
}

【讨论】:

    猜你喜欢
    • 2019-10-07
    • 1970-01-01
    • 2015-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-13
    • 2014-10-20
    相关资源
    最近更新 更多