You can check the log (system.log file) and send information of a specific log level to the administrator by e-mail.

When the specified time comes, it reads the contents of the log (system.log) and sends the contents of the log that matches the condition by e-mail.

Figure 1 Job settings
  1. Log on with an account with administrator privileges.
  2. Open the "Job Management" "Job Schedule Search" screen from the menu.
  3. Click the "Register Screen" button to register a new job schedule.
  4. Select "AlterMailFromLog" from the job name.In the description column below that "Log content is output to mail" is displayed.
  5. In the job parameter, write the command you want to execute.
  6. Specify the schedule.
  7. Check the "valid" flag.
  8. Enter the account "jobadmin" to run this job.
  9. Register the job schedule.When the specified time is reached, the maintenance mode is switched.

Specify the next job parameter.

Parameters Required Description An example
type - Specify one of the following six character strings."ALL", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"
Default is "ERROR".If "ALL" is specified, everything is eligible.
keyword - Gets a log containing the specified character string.For example, if you set "JFC-", you can get the log containing the log code. JFC-
interval - Specify the time interval for executing this job multiple times a day.(You can specify this separately from the time specified in the job schedule.) If the end is 'h' it means time, if the end is 'm' it means minutes.If there is no suffix, it becomes second.Specify the value within 24 hours.Activate this job at 18 o'clock every day and specify '8 h' for interval to target logs from 10 o'clock to 18 o'clock. 8h
script - Write the server side JavaScript code for character string processing directly.This script is executed for each log line.[To be described later]

The execution result of this job is also described in the log file (system.log).

Sending mail settings

Please set "send job execution result by e-mail" together with the above parameters.This will send the contents of the log to the specified e-mail address.

Mail transmission parameter mail: doNotSendEmptyMessagetrueIf you specify, if there is no log, no mail will be sent.

You can temporarily disable the job.

  1. Log on with an account with administrator privileges.
  2. Open the "Job" "Job Schedule Search" screen from the menu.
  3. Search the applicable "Job Schedule" and open the maintenance screen.
  4. Uncheck the "Enabled" flag and save it.
    Figure 2 Disable Job

Multiple job execution can not be performed.

If you make a job start every minute, if execution of this job is not completed in 1 minute, a new job will not be executed.

Send the log in which the CSV download process was executed by e-mail


Parameter keyvalue,
mail:subject[Download log from system]


unit Seconds Minute Time Day Month The day of the week Year
value 0 0 0,3,6,9,12,15,18,21 * * ? *

Using the parameter "script", you can also add the content of the string in the log body to the judgment material.

Limit to cases where download acquisition count is 50 or more

Write the code directly in the value part of the script parameter as follows.The function name is checkLog.You can retrieve the log body using method getMessage of argument log.This function is applicable when the return value of this function is true.

function checkLog(log) {
    var s = log.getMessage();
    var msg = 'finished output csv file count:';
    var cnt = s.indexOf(msg);
    if (cnt >= 0) {
        i = s.substring(cnt+msg.length);
        if (parseInt(i) > 50) {
            return true;
    return false;

Please keep the code size within the range of the string type of your database.Approximately 1,000 to 2,000 characters are a guide.

Instead of specifying time, you can also run this job now.Please read "Job Immediate Execution".