Created
March 2, 2016 12:48
-
-
Save ak1211/4a7432c12a582861391f to your computer and use it in GitHub Desktop.
標準入力から来た行から開始ログ,終了ログを見つけて,それぞれ覚えておく
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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