Score:-1

Receive SMS/Alert when specified text detected in a log file

in flag

I've been searching for a service for Linux that monitors logs for a certain text string and if that string matches, it sends a notification, ideally by SMS.

If the log text file contains "SPECIFIED TEXT", it calls this API...

A Telegram bot could also work...

Regardless if this service is paid or not, SMS would be preferred.

Thank you!

ChanganAuto avatar
us flag
There's no such service AFAIK but a script could theoretically do that. How it would interface with a Telegram API (if there is one) or with a SMS center without a modem is a a new can of worms.
Score:0
it flag

logwatch is the tool to use. You'll probably need to install it, and an Internet search will find tutorials, hints, contributed configurations, ... See https://ubuntu.com/server/docs/logwatch

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.