Is there a way to monitor a log file and trigger an action if a specific string of text is missing?

Cheers, Leon Hewitt

asked 31 May '16, 22:45

CITS-MOE's gravatar image

CITS-MOE
323
accept rate: 0%


Hi Leon,

The Log File Monitor as you know checks a text log file for the specific text. However, it doesn't have the ability to do what you are asking for.

You could use an Execute Script Monitor to check the file to make sure that specific text is found. In fact there is a sample script on the documentation page that do just that.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 01 Jun '16, 09:09

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Thanks Quinn, I might look into the Execute Script side of things.

I am currently using a Log File Monitor as it checks our license server for "Error" "Exiting" or "Failed" but the other day i found the service was down but the log file had completely blanked itself. Was hoping i could adapt the existing monitor to also detect a blank file.

Cheers, Leon Hewitt

(01 Jun '16, 21:19) CITS-MOE
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79
×14
×3
×2

Asked: 31 May '16, 22:45

Seen: 4,733 times

Last updated: 01 Jun '16, 21:19