I ran into a similar issue when attempting to parse the client logs for errors. I was told that it could not evaluate the current log as it is a locked file. The irony that the file is locked by the client’s own process. You would think the client would be able to parse its own current log …
The next best thing is to parse previous days log files by qualifying the date range of the logs. … files whose (creation time of it < (now - time interval “1 day”)) …