mloginfo is encountering an error because of “###” in the mongodb log file.
what is the workaround?
source: mongodb.log
host: <host>:27017
start: 2022 Jun 01 09:03:47.876
end: 2022 Jun 01 13:35:00.151
date format: iso8601-local
timezone: UTC +0800
length: 39195
binary: mongod
version: 4.2.18
storage: wiredTiger
QUERIES
[= ] 1.5 % Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/util/logevent.py”, line 835, in _extract_counters
‘’))
ValueError: invalid literal for int() with base 10: ‘’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/bin/mloginfo”, line 11, in
load_entry_point(‘mtools==1.7.0’, ‘console_scripts’, ‘mloginfo’)()
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/mloginfo/mloginfo.py”, line 112, in main
tool.run()
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/mloginfo/mloginfo.py”, line 107, in run
section.run()
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/mloginfo/sections/query_section.py”, line 92, in run
allowDiskUse=le.allowDiskUse)
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/util/logevent.py”, line 678, in allowDiskUse
self._extract_counters()
File “/usr/local/lib/python3.6/site-packages/mtools-1.7.0-py3.6.egg/mtools/util/logevent.py”, line 884, in _extract_counters
self._txnNumber = int((split_tokens[t + 1 + self.datetime_nextpos + 2]).replace(’,’, ‘’))
ValueError: invalid literal for int() with base 10: ‘"###"’