與Logstash介接

Logstash設定

input {
  stdin { }
}
output {
  stdout {
      codec => "json_lines"
  }
  tcp {
    codec => "json_lines"
    host => "172.26.126.15"
    port => 20001
  }
}

Fluentd設定

<source>
  type tcp
  port 20001
  format json
  tag ls2fd
</source>
<match ls2fd.**>
  type stdout
</match>

results matching ""

    No results matching ""