Skip to content

Instantly share code, notes, and snippets.

@ak1211
Created March 2, 2016 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ak1211/4a7432c12a582861391f to your computer and use it in GitHub Desktop.
Save ak1211/4a7432c12a582861391f to your computer and use it in GitHub Desktop.
標準入力から来た行から開始ログ,終了ログを見つけて,それぞれ覚えておく
start_session_logs = []
terminate_session_logs = []
for line in sys.stdin:
if re.search (r'%ASA-[^:]+?-113039:', line):
start_session_logs.append (
extract_start_session_from_log (line))
#
if re.search (r'%ASA-[^:]+?-113019:', line):
terminate_session_logs.append (
extract_terminate_session_from_log(line))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment