Guest User

Untitled

a guest
Mar 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. grep -rhe "ACS Websocket connection closed for a valid reason" -e "ACS client starting websocket poll loop" /var/log/ecs |
  2. sort |
  3. tail -n +2 |
  4. awk -F'Z' '{ gsub("-"," ",$1); gsub("T"," ",$1); gsub(":"," ",$1); print mktime($1)}' |
  5. sort -n |
  6. awk '{if(NR%2 == 0){print $1 - _n}; _n=$1}' |
  7. sort -n
Add Comment
Please, Sign In to add comment