Logfile output rotated by size
Outputs decoded data stream rotating the log file every time it reaches the
rotate_size
.
1. Sample Configuration
filename = "logfile_rotate.lua"
message_matcher = "TRUE"
ticker_interval = 0
--location where the payload is written
output_dir = "/var/tmp"
rotate_size = 1024 * 1024 * 1024
rotate_retention = 10
-- Specify a module that will encode/convert the Heka message into its output representation.
encoder_module = "encoders.heka.framed_protobuf" -- default
source code: logfile_rotate.lua