The plugin supports the following configuration parameters:
The Treasure Data API key. To obtain it please log into the Console and in the API keys box, copy the API key hash.
Specify the name of your target database.
Specify the name of your target table where the records will be stored.
Set the service region, available values: US and JP
In order to start inserting records into Treasure Data, you can run the plugin from the command line or through the configuration file:
$ fluent-bit -i cpu -o td -p API="abc" -p Database="fluentbit" -p Table="cpu_samples"
Ideally you don't want to expose your API key from the command line, using a configuration file is highly desired.
In your main configuration file append the following Input & Output sections: