【问题标题】:Graphite input in LogstashLogstash 中的石墨输入
【发布时间】:2014-11-13 15:02:03
【问题描述】:

有人在 Logstash 中使用过 Graphite 作为输入吗?

Graphite 在 logstash 中同时提供输入和输出。

你是如何进行的?

【问题讨论】:

  • 您尝试过编写输入{} 节吗?
  • 已有输入可用。不需要写任何东西。我想知道你是否实施它。
  • 你的输入节有什么内容?
  • 请向我们展示您到目前为止所做的尝试。

标签: logstash graphite


【解决方案1】:

是的,我们已成功捕获 Graphite 格式的输入数据。我是 Logstash 新手,但我认为您需要使用过滤器提取数据。

请参见下面的示例,但我认为这仅适用于单个指标,而不适用于 pickle 格式。

input {
    graphite {
        port => 2003
        type => "graphite-format-metrics"
    }
}
filter {
    if [type] == "graphite-format-metrics" {
        grok {
            match => [ "message", "%{DATA:metric_name} %{NUMBER:metric_value:float} %{POSINT:timestamp}" ]
        }
    }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-28
    • 2020-09-07
    • 1970-01-01
    • 2018-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多