This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Powershell Log parser for multiple strings

Hi,

I am using the out of the box Powershell script that would search for a new string(e.g. success) from a file. How do i monitor multiple strings(success, failure, critical) with similar number of statistic output? Currently it can only take in one value.

I am new to programming and do not know how to apply arrays. Would appreciate any help, thanks. I have attached the script.