How would you structure a secure logging and monitoring pipeline that handles terabytes of telemetry data daily without incurring prohibitive costs?