1
0
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()
     return l.replace(',','').replace('\n','').strip()
 
 
 for l in io.TextIOWrapper(cl.stdout, encoding="utf-8"):
 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:
     if '"AccessKeyId":' in l:
     
     
         lst.append(proc_l(l))
         lst.append(proc_l(l))