Repository is archived
No commit activity in last 3 years
No release in over 3 years
ArangoDB plugin for Fluent event collector
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0.9.2

Runtime

~> 0.10.0
 Project Readme

ArangoDB plugin for Fluentd¶ ↑

fluent-plugin-arango provides write to ArangoDB for Fluentd.

Install¶ ↑

$ fluent-gem install fluent-plugin-arango

Configuration¶ ↑

Minimum Configuration¶ ↑

<match access.**>
  type arango
  collection my_collection_name
</match>

Supported Configurations¶ ↑

<match access.**>

  # plugin type
  type arango

  # required
  collection my_collection_name

  # optional host-config
  scheme http
  host localhost
  port 8529

  # optional auth-config
  username xxxx
  password xxxx

  # optional time-config (provided by Fluent::SetTimeKeyMixin)
  include_time_key true
  time_key time
  ##time_format
  ##localtime
  ##utc

  # optional tag-config (proviced by Fluent::SetTagKeyMixin)
  include_tag_key true
  tag_key tag

  # optinal parent-class-config (proviced by Fluent::BufferedOutput)
  buffer_type memory
  flush_interval 60
  retry_limit 17
  retry_wait 1.0
  num_threads 1
  ##<secondary>
  ##secondary_limit

</match>

Examples¶ ↑

Example: Basically Output¶ ↑

Configure

<match hoge>
  type arango
  collection fuga
</match>

Result

IN: {"a": 1}
OUT: {"a":1, "tag": "hoge", "time": "2013-02-18T12:59:10Z"}

Example: Does not include a time,tag key¶ ↑

Configure

<match hoge>
  type arango
  collection fuga
  include_time_key false
  include_tag_key false
</match>

Result

IN: {"a": 1}
OUT: {"a":1}

Example: Change time format, and Change time,tag key name¶ ↑

Configure

<match hoge>
  type arango
  collection fuga
  time_format %Y/%m/%d %H:%M:%S
  time_key mytime
  tag_key  mytag
</match>

Result

IN: {"a": 1}
OUT: {"a":1, "mytag": "hoge", "mytime": "2013/02/18 12:59:10"}

Example: Connect to ArangoDB with authenticate¶ ↑

Configure

<match hoge>
  type arango
  collection fuga
  username your_name
  password your_pass
</match>

Attention¶ ↑

include_time_key and include_tag_key is destructive operation. ( see: d.hatena.ne.jp/oranie/20120525/1337942598 )

TODO¶ ↑

  • Bulk import

  • UnitTest for auth

Dependency Library¶ ↑

Copyright and License¶ ↑

Copyright

Copyright © 2013- tamtam180 <kirscheless at gmail.com>

License

Apache License, Version 2.0