Near Real-Time Report Output and Optional S3 Sync
Outputs the real-time report to the configured directory. The output filename is output_dir/Fields[day]/EnvVersion-logger.Fields[name].Fields[ext] and the contents are Fields[data].
1. Sample Configuration
filename = "near_real_time_report.lua"
message_matcher = "Type == 'report.daily'"
ticker_interval = 60 -- aggregate reports are generally output every minute
-- location where the data is written (e.g. make them accessible from a web
-- server for external consumption)
output_dir = "/var/tmp/hindsight/reports"
-- optional
s3_uri = "s3://example/reports"
s3_storage_class = STANDARD -- REDUCED_REDUNDANCY or STANDARD_IA
source code: near_real_time_report.lua