Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

m3dev/fluent-plugin-http-list

Repository files navigation

fluent-plugin-http-list, a plugin for Fluentd

Overview

This plugin takes a JSON list of events as input via a single HTTP POST request and emits each as an individual event to your output plugins. If you're sending a lot of events this simplifies your client's code and eliminates the overhead of creating a lot of brief connections.

※ Note that unlike the default HTTP plugin, this does not support msgpack.

Configuration

The HttpListInput plugin uses the same settings you would use for the standard HTTP input plugin. Example:

<source>
  type http_list
  port 8888
  bind 0.0.0.0
  body_size_limit 32m
  keepalive_timeout 10s
</source>

Like the HTTP input plugin, the tag is determined by the URL used, which means all events in one request must have the same tag.

Usage

Have your logging system send JSON lists of events. Example:

curl -X POST -d 'json=[{"fish":"catfish","user":23},{"fish":"elephantfish","user":23}]' \
  http://localhost:8888/fish.tracker

Each event in the list will be sent to your output plugins as an individual event.

Copyright

Copyright (c) 2013 M3, Inc.

Based on the in_http plugin by FURUHASHI Sadayuki

Apache License, Version 2.0

About

A plugin to accept a JSON list of events via HTTP Post.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages