abrt-watch-log Verified current stable Not installed? Observability

Abrt Watch Log / Monitor Log File Trigger Action Linux

Monitor Log File Trigger Action Linux

Abrt Watch Log command syntax to monitor log file trigger action linux. Copyable examples, output expectations, and common mistakes.

$
Terminal
abrt-watch-log -F <error_string> </var/log/myapp.log> <notify-send "Crash detected">

Warning

Destructive operation. Confirm the target path and keep a backup before executing.

Command Breakdown

What each part is doing

abrt-watch-log
Base Command
The executable that performs this operation. Here it runs Abrt Watch Log before the shell applies any redirect operators.
<error_string>
error string
The value supplied for error string.
</var/log/myapp.log>
var log myapp.log
The value supplied for var log myapp.log.
<notify-send "Crash detected">
notify send "Crash detected"
The value supplied for notify send "Crash detected".
-F
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative observability tools for the same job.