Skip to content
No description, website, or topics provided.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/fluent/plugin
test
.gitignore
CHANGELOG
Gemfile
README.md
Rakefile
fluent-plugin-consul.gemspec

README.md

Consul output plugin for Fluentd

fluent-plugin-consul store Fluentd event to Consul Key/Value Storage

Installing

gem install fluent-plugin-consul

Configuration

example configuration

<store>
  type consul
  consul_uri http://localhost:8500 # default
  kv_prefix fluentd # default
</store>

Storing to Consul

input a json format data and store to Consul

for example, input record is

{
    "server": {
        "ip":"10.0.0.10",
        "netmask":"255.0.0.0"
    },
    "client": {
        "ip":"192.168.33.10",
        "netmask":"255.255.255.0"
    }
}

stored Key/Value Storage of Consul

  • {kv_prefix}/server/ip: 10.0.0.10
  • {kv_prefix}/server/netmask: 255.0.0.0
  • {kv_prefix}/client/ip: 192.168.33.10
  • {kv_prefix}/client/netmask: 255.255.255.0
You can’t perform that action at this time.