Here you have some possible samples that you may use as templates for your own purposes. In any case, the main goal of this post is give you an idea of what it is possible using PLEX modules.
The Samples or “Templates”
Remote log Distributed search using findstr.exe
"for /f `"tokens=*`" %i in ('dir /s /b *.log') do @findstr `"MyRegExPattern`" `"%i`"" | .\nmagent.ps1 -profile plex -cmd exec -src file -save
Remote log Distributed search using RSaR.exe
. “RSaR” means “Regex Search and Rescue” and can be found at rsar.codeplex.com.
"\\MyServer\MyReadOnlyShare\RSaR.exe *.log /s /i `"MyDotNetRegExPattern`"" | .\nmagent.ps1 -profile plex
...
Continue reading ...
Leave a Comment