+4

Monitor a file for changes and send an alert

Published 3 years ago

Created by

rons4
ron

Categories

Engineering
IT Ops
SecOps

Template description

This flow monitors a file for changes of its content. If changed, an alert is sent out and you receive it as push, SMS or voice call on SIGNL4.

User cases:

  • Log-file monitoring
  • Monitoring of production data
  • Integration with third-party systems via file interface
  • Etc.

Sample file "alert-data.json":

{
    "Body": "Alert in building A2.",
    "Done": false,
    "eventId": "2518088743722201372_4ee5617b-2731-4d38-8e16-e4148b8fb8a0"
}

Body: The alert text to be sent.
Done: If false this is a new alert. If true this indicated the alert has been closed.
eventId: Last SIGNL4 event ID written by SIGNL4.

This flow can be easily adapted for database monitoring as well.

Share Template

Implement complex processes faster with n8n

red icon yellow icon red icon yellow icon