Log Insight – How to Monitor a specific application Log File

The following instructions will show you how to log and monitor any custom windows application as long as you know the directory of where the logs are stored.

Use Case Scenario: My web application crashes every time Error 5015 occurs on my application. I would like to be able to log and get alerted each and every time this happens. This will allow me to fix it before anyone knows that the server is down.

  1. In this example we will show you how to find the error called Error 5015 that is located in a C:\Log directory in a text file called log_file.txt. This is a simulation of a custom application error message.
  2. First make sure you have the Windows Agent installed. Go to Content Pack > Marketplace and make sure the Microsoft – Windows Content Pack is installed. If it is not installed, then make sure you install it.
  3. Next we need to configure the Windows Agent to look for this specific path and application log file. Go to Administration > Agents and from the dropdown select Microsoft – Windows

  4. Scroll to the bottom and click on Copy Template

  5. Provide a name and then click on Copy

  6. Add a filter to apply this to a specific Host or IP address. In this example we will apply it to all Windows Operating System. Also remember to Enable auto-update

  7. Next we will need to tell the agent to find the specific application log file. Highlight File Logs and click on +New

  8. Enter a name and click on OK

  9. Enter the directory that the application log location and then enter the file name to include

  10. If you click on Edit you can see how it looks like in the configuration file

  11. Once completed, click on Save Agent Group located on the bottom of the page

  12. Now click on Download Log Insight Agent and install the agent on the Window server you want to monitor

  13. If everything is done correctly you should now see your server listed when your custom agent from the dropdown is selected.

  14. If you click on the Hostname it will bring you to logs page for that specific Virtual Machine

  15. Now enter in the specific Error message to see if it occurred. Note, if you just installed the agent, it will not catch any past events that happened before the installation of the agent. In my example you can see my Error 5515 example did occur in the last 5 minutes and notice how I also see the filepath field.

  16. To add this alert to my dashboard, click on the icon

  17. To create an alert, click on the icon


Leave a Comment

Scroll to Top