fluent-plugin-lambda

Output plugin for AWS Lambda.

Gem Version Build Status

Installation

$ gem install fluent-plugin-lambda

Configuration

<match lambda.**>
  type lambda
  #profile ...
  #credentials_path ...
  #aws_key_id ...
  #aws_sec_key ...
  region us-east-1
  #endpoint ...

  #qualifier staging
  function_name my_func
  # Pass the function name in the key of record if the function name is not set

  # include_time_key false
  # include_tag_key false
</match>

Usage

When the function name is set:

echo '{"key":"value"}' | fluent-cat lambda.foo

When the function name is not set:

echo '{"function_name":"my_func", "key":"value"}' | fluent-cat lambda.bar