Hey guys,
I want to monitor a log file so it will compare a certain string inside and will update me if there are duplicates.
Do you know how could I achieve that?
There's some example log parsers in SAM already, you might need to edit it slightly or more significantly depending on what your file and requirements look like
Hi @Roei-SagiThere are some SAM components out of the box which will help, but if you need some guidance, check the below template:Log Parser (PowerShell) - Application Monitor Templates - Server & Application Monitor - THWACK (solarwinds.com)
Hey,
I would need to check that on a Linux Server.
Ah, if it's a Linux server, you'll likely need to get PoSH installed first. This link may help:https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.The link above details the Windows-centric SAM template, it may not work at all on Linux hosts, even if PoSH is installed.
You may have more luck using the Perl version of the OOTB Log Parser template:
Log Parser (Perl) (solarwinds.com)