Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.1 kB
1
Indexable
Never
VM: 23
Syslog File Location: /var/log/syslog/Testing/LONSTBYRDEV02-10.72.209.183.log
Retention Period: 7
Bookmark Index: 6799630
Purging Logs...
Bookmark Line: 2023-05-23T11:17:35+00:00 LONSTBYRDEV02 systemd[1]: Started Session 2095727 of user CAPEUSER.
Bookmark TImestamp :  2023-05-23T11:17:35+00:00
Bookmark Date :  2023-05-23
Current Date: 2023-05-25
Purging Date :  2023-05-18
Traceback (most recent call last):
  File "/App/jar/KPI/syslog_purging_new.py", line 156, in <module>
    purge_logs()
  File "/App/jar/KPI/syslog_purging_new.py", line 138, in purge_logs
    line_date = datetime.datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%S+00:00").date()
  File "/home/CAPEUSER/Python/python-3.10.10/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
    tt, fraction, gmtoff_fraction = _strptime(data_string, format)
  File "/home/CAPEUSER/Python/python-3.10.10/lib/python3.10/_strptime.py", line 349, in _strptime
    raise ValueError("time data %r does not match format %r" %
ValueError: time data '' does not match format '%Y-%m-%dT%H:%M:%S+00:00'