Skip to content

dobanov/mon_log_and_send_keywords_to_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This program monitors the log file(s) and sends new lines from the log file(s) containing keyword(s) to the Telegram chat/bot.

g++ -o tg_send tg_send.cpp -lcurl / g++ -std=c++17 -o tg_send tg_send.cpp -lcurl

Options:

--filename Path to the log file(s)

--keyword Keyword(s) to watch for in the log file(s)

--n Number of words to include in the message

--bot-id Telegram Bot ID

--chat-id Telegram Chat ID(s)

About

it monitors log(s) and send messages with keyword(s) to telegram

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published