Your Name 3 년 전
부모
커밋
1e45832adc
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      hhh/aws-monitor/cl-test.py

+ 7 - 1
hhh/aws-monitor/cl-test.py

@@ -12,7 +12,13 @@ def proc_l(l):
     return l.replace(',','').replace('\n','').strip()
 
 for l in io.TextIOWrapper(cl.stdout, encoding="utf-8"):
-    print(l)
+#    print(l)
+    if '"EventId":' in l:
+        lst.append(proc_l(l))
+
+    if '"EventTime":' in l:
+        lst.append(proc_l(l))
+
     if '"AccessKeyId":' in l:
     
         lst.append(proc_l(l))