Spring Batch can be registered in the job scheduler. It can be executed as a time designated job.
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.
Specify the next job parameter.
|jobid||○||Specify the identifier (ID) of the job you want to execute.[More ...]||Batch1|
|Param: Parameter name
||Specify the parameters to pass to the script.The character string following "param:" becomes the parameter name.||param:targetdate|
The execution result of this job is also described in the log file (system.log).
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: doNotSendEmptyMessage
trueIf you specify, if there is no log, no mail will be sent.
You can temporarily disable the job.
If you set the job parameter mail: doNotSendEmptyMessage to true, mail will not be sent if the message is empty (not exceeding the threshold value).
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.
Instead of specifying time, you can also run this job now.Please read "Job Immediate Execution".