0 Replies Latest reply on Nov 5, 2017 6:06 PM by jdwinns

    USING A JAVA PROGRAM/SCRIPT AS A SAM COMPONENT

    jdwinns

      Does anyone know if it is possible to use a Java script/program as a SAM component? Similar to this: https://thwack.solarwinds.com/docs/DOC-188268

       

      We have a few Java scripts that were written to use with our old monitoring solution. These were basically log parsing scripts that do some extra formatting for us. They are using a number of regular expression that I attempted to translate into the SAM Log Parser (Powershell) script but have been unsuccessful so far. Here's an example of a couple of the expression being used:

       

      .(\sERROR\s).$

      .(code:-8973)+.$

      .(\(-1541\)\srejection).$

      .(\(-1685\)\srejection).$

      ^(\\d){4}-(\\d){2}-(\\d){2}\\s(\\d){2}:(\\d){2}:(\\d){2},(\\d){3}\\s.*$

       

      Any suggestions or advice would be greatly appreciated, thanks!