insights-core icon indicating copy to clipboard operation
insights-core copied to clipboard

No method to check whether /var/log/message is empty or not

Open code-with-amitk opened this issue 4 years ago • 1 comments

docstring example does not show any method to check if /var/log/message file has size=0, KCS for which this would be required.

code-with-amitk avatar Apr 17 '20 05:04 code-with-amitk

@amitkumar50 The current implementation for the /var/log/messages parser would not be able to provide this because the contents of that file is filtered when it is collected. Even though the messages file may contain lines on the system, if no filters match, there will be no data in the parser.

If you need to know whether /var/log/messages is empty, then a new spec and parser would be required to check the size of that file.

bfahr avatar May 07 '20 14:05 bfahr