Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (32 loc) · 985 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 985 Bytes

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