
Analyze SMS delivery success rates, costs, and message types using Amazon SNS delivery status logs for monitoring and optimization
fields @timestamp, delivery.destination, delivery.smsType, status, delivery.priceInUSD
| filter ispresent(delivery.destination)
| stats count() as messageCount,
sum(coalesce(delivery.priceInUSD, 0)) as totalCostUSD
by delivery.smsType, status
| sort delivery.smsType, status