I have a field 'vpn_duration' which is taken from the 'Duration:' value in an ASA syslog disconnect message.
The message looks like this:
May 26 15:15:56 cvpn.X.net May 26 2010 14:58:24: %ASA-4-113019: Group = XVPN, Username = userA, IP = 1.2.3.4, Session disconnected. Session Type: IPsec, Duration: 5h:06m:18s, Bytes xmt: 24875, Bytes rcv: 33036, Reason: Lost Service
I would like to take the value I get (5h:06m:18s) and convert it into minutes. So, in this case, my result would be 306.
How can I get this done?
... View more