Moved tail cmd to config file
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
[
|
||||
{ log_monitor,
|
||||
[
|
||||
{general,
|
||||
[
|
||||
%% Command to watch the log files.
|
||||
{tail_cmd, "/usr/bin/tail -n0 --follow=name"},
|
||||
|
||||
%% How long to gather log lines after an error occurs.
|
||||
%% If another error occurs, the time is reset.
|
||||
{gathering_time, 1000},
|
||||
|
||||
%% Max time for gathering log lines.
|
||||
%% Precaution in case of infinite consecutive errors.
|
||||
{max_gathering_time, 30000}
|
||||
]
|
||||
},
|
||||
|
||||
{email_config,
|
||||
[
|
||||
{sender, "log@monitor.com"},
|
||||
@@ -24,17 +39,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{processing_config,
|
||||
[
|
||||
%% How long to gather log lines after an error occurs.
|
||||
%% If another error occurs, the time is reset.
|
||||
{gathering_time, 1000},
|
||||
|
||||
%% Max time for gathering log lines.
|
||||
%% Precaution in case of infinite consecutive errors.
|
||||
{max_gathering_time, 30000}
|
||||
]
|
||||
},
|
||||
|
||||
%% Location of the file that contains the logs to monitor.
|
||||
{logfiles_config, "/home/fsalvini/gitRepos/log_monitor/config/logfiles.config"}
|
||||
|
||||
Reference in New Issue
Block a user