4 Replies Latest reply on Aug 31, 2017 11:46 AM by wilsonchan

    how to monitoring linux / UNIX log file with "keyword / string " ?

    wilsonchan

      In SAM how to monitoring Real Time update linux / UNIX  log file with "keyword / string " ?  Any Template ?

        • Re: how to monitoring linux / UNIX log file with "keyword / string " ?
          aLTeReGo

          Have you tried using the following application template?

           

          Log Parser (Perl)

            • Re: how to monitoring linux / UNIX log file with "keyword / string " ?
              wilsonchan

              I have test this template , is NOT work of we want result .

              The real time update log is applicaton log , we want to monitor when the applaction log appear "Alert"[keyword/string] message .

               

              Example : "we create a testing log file for testing the template Found string in # position] show as below "

               

              Thu Aug 31 11:40:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 11:45:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 11:48:01 HKT 2017 : first line [Test]\nsecond line [Alert]\nthird line [Wait]\n

              Thu Aug 31 11:50:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 11:55:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 12:00:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 12:00:01 HKT 2017 : first line [Test]\nsecond line [Alert]\nthird line [Wait]\n

              Thu Aug 31 12:05:01 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

              Thu Aug 31 12:10:02 HKT 2017 : first line [Test]\nsecond line [lert]\nthird line [Wait]\n

               

              When NEW line appear " Alert " , NO action response on SAM .