# Monitor Log File & Send Email on Matching Text

**URL:** <https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336>\
**Category:** Get Help\
**Tags:** custom, webhooks, logging\
**Created:** [January 1, 2021, 4:14pm UTC](https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336 "2021-01-01T16:14:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![muzicman82](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/muzicman82/32/112_2.png) [@muzicman82](https://community.gravityforms.com/u/muzicman82)\
**Post date:** [January 1, 2021, 4:14pm UTC](https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336/1 "2021-01-01T16:14:53Z")

</div>

Hi all,

I have been troubleshooting a problem with Webhooks connecting to another server for a while now. Currently, an error in the Webhooks log file is my only indication that things are broken besides things not working. I’m looking for a way to monitor this TXT log file and send me an email when matching text is found. I can deploy a 3rd party plugin. Thoughts?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [January 4, 2021, 4:35pm UTC](https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336/2 "2021-01-04T16:35:50Z")

</div>

Hi @muzicman82 - this may be more related to the server monitoring of a log file rather than something within WordPress or Gravity Forms. This discussion covers monitoring log files on a server and mailing on specific events:

> <https://serverfault.com/questions/34141/send-email-alert-on-log-file-entry>

Ideally you could extend the logging class in Gravity Forms to also send an email, but there are no hooks or filters to do that currently, so you will have to find another method to catch these errors currently.

---

<div class="post-metadata">

**Author:** ![muzicman82](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/muzicman82/32/112_2.png) [@muzicman82](https://community.gravityforms.com/u/muzicman82)\
**Post date:** [January 4, 2021, 5:57pm UTC](https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336/3 "2021-01-04T17:57:59Z")

</div>

I sort of need to do this with a plugin since the site in question is on shared hosting and I don’t think I can deploy something like that. I suppose I could use a URL watcher since it is just a text file but I’d have to find one that will match text and not just a change.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:47am UTC](https://community.gravityforms.com/t/monitor-log-file-send-email-on-matching-text/7336/4 "2022-01-05T08:47:07Z")

</div>

Closed on January 5, 2022, 8:47am UTC


