Parse logs as part of sequence fails because file being used by another process

I’m attempting to create a sequence that in the end of process checks certain info events from log file and then posts them to monitoring service. I’ve seen several log parser examples including the LogFile_Parser -package but have the same issue on all of them: The Read Text File or ReadLines activities fail because of process cannot access the log file because it is being used by another process.

In other examples of that issue the generic advice is to kill the other process first, but with logging I don’t have that option. Is there a workaround for the file access being blocked?

@truohoma

Welcome to the community

May I know why you want to read the logs?

Ideally all of those are written by the same bot …what is the use case?

Cheers

Ok found out a workaround: When creating a copy of the file (not just instantiate but copy), it can be read while the workflow is still ongoing.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.