Repository is archived
No commit activity in last 3 years
No release in over 3 years
fluent plugin to accept multiple events in one HTTP request
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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