IpaupgradeLog - file /var/log/ipaupgrade.log
¶
This file records the information of IPA server upgrade process while
executing command ipa-server-upgrade
-
class
insights.parsers.ipaupgrade_log.
IpaupgradeLog
(context)[source]¶ Bases:
insights.core.LogFileOutput
This parser is used to parse the content of file /var/log/ipaupgrade.log.
Note
Please refer to its super-class
insights.core.LogFileOutput
Typical content of
ipaupgrade.log
file is:2017-08-07T07:36:50Z DEBUG Starting external process 2017-08-07T07:36:50Z DEBUG args=/bin/systemctl is-active pki-tomcatd@pki-tomcat.service 2017-08-07T07:36:50Z DEBUG Process finished, return code=0 2017-08-07T07:36:50Z DEBUG stdout=active 2017-08-07T07:41:50Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually.
Example
>>> ipaupgradelog = shared[IpaupgradeLog] >>> len(list(log.get('DEBUG'))) 4 >>> from datetime import datetime >>> len(log.get_after(datetime(2017, 8, 7, 7, 37, 30))) 1