With splunk team, I could get the following result, but I am still looking for the search to get the result based on actual time stamp like above.
# splunk search 'sourcetype="sendmail" | convert dur2sec(delay) dur2sec(xdelay) | transaction queueid | search msgid=*ChangeMe from=testuser1* to=testuser2* | where delay>=0 | stats last(_time) as time1 first(_time) as time2 list(delay) as delay(sec) values(host) list(stat) by from,to,msgid | convert ctime(time1) ctime(time2)'
from to msgid time1 time2 delay(sec) values(host) list(stat)
---------------------- ---------------------- ----------------------------------------- ------------------- ------------------- ---------- ------------ ----------
[email protected] [email protected] 012B28991FA3471F9929FEA3977B7C8A@ChangeMe 12/20/2010 16:31:00 12/20/2010 16:31:08 5 mail1 Sent
7 mail2 Sent
5 mail3 Sent
[email protected] [email protected] 1EE3A51D02FD4EF58488BEA27F452324@ChangeMe 12/20/2010 16:39:11 12/20/2010 16:39:13 0 mail1 Sent
1 mail2 Sent
1 mail3 Sent
[email protected] [email protected] 24FC6F57221C4FFA9BC1B5E5E0676519@ChangeMe 12/16/2010 14:06:18 12/16/2010 14:06:18 0 mail1 Sent
[email protected] [email protected] 282997A8AE804969B7AEDEF9E8C357F6@ChangeMe 12/16/2010 17:14:08 12/16/2010 17:14:11 0 mail1 Sent
2 mail2 Sent
1 mail3 Sent
[email protected] [email protected] 2FB15937BFF349B8BEA52BC33776C122@ChangeMe 12/20/2010 16:29:13 12/20/2010 16:29:16 0 mail1 Sent
2 mail2 Sent
2 mail3 Sent
[email protected] [email protected] 99A437DA859C4EA4B58702961591692C@ChangeMe 12/16/2010 14:27:31 12/16/2010 14:27:33 0 mail1 Sent
1 mail2 Sent
2 mail3 Sent
[email protected] [email protected] 9E3FCD84A0524ACFB0F7AF4FD2FA7B68@ChangeMe 12/16/2010 15:02:35 12/16/2010 15:02:37 1 mail1 Sent
1 mail2 Sent
1 mail3 Sent
[email protected] [email protected] FA1F6FD73ED347CB8F3B5451C59750CA@ChangeMe 12/16/2010 17:10:52 12/16/2010 17:10:55 1 mail1 Sent
2 mail2 Sent
1 mail3 Sent
... View more