No commit activity in last 3 years
No release in over 3 years
A Fluentd output plugin to send logs to falcon's push API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0

Runtime

< 2, >= 0.10.0
>= 2.9.0, ~> 2.9.0
~> 1.0
 Project Readme

fluent-plugin-out-falcon, a plugin for Fluentd

A fluentd output plugin for sending logs to falcon's push API.

Configuration options

record option will be posted to falcon. It can only be in one line(limited by fluentd), in the form as ([{ruby_hash_items},{ruby_hash_items},...]). The outsider () is used to avoid fluentd interpret this line as json. You can use tag, time and record variables while writing ruby_hash.

<source>
  @type dummy
  tag xx.yyy
  dummy {"ip":"8.8.8.8", "data1":888, "data2": "message"} 
</source>
<match xx.yyy>
  type falcon
  endpoint_url    http://localhost:1988/v1/push
  records         ([{'metric'=>'number_data', 'endpoint'=>record['ip'], 'timestamp'=>time, 'value'=>record['data1'], 'step'=>1, 'counterType'=>'GAUGE', 'tags'=>nil}, {'metric'=>'string_data', 'endpoint'=>record['ip'], 'timestamp'=>time, 'value'=>record['data2'], 'step'=>1, 'counterType'=>'GAUGE', 'tags'=>nil}])
  rate_limit_msec 100    # default: 0 = no rate limiting
  raise_on_error  false  # default: true
  authentication  basic  # default: none
  username        alice  # default: ''
  password        bobpop # default: '', secret: true
</match>

Heavily based on fluent-plugin-out-http