mirror of
https://github.com/Luzifer/elastic_cron.git
synced 2024-12-22 18:31:20 +00:00
Update parameters in README
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1592d961b9
commit
76d91aece9
1 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@ This project is a quick and dirty replacement for running a cron daemon inside d
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
rsyslog_target: logs.myserver.com:12345
|
rsyslog_target: logs.myserver.com:12345
|
||||||
|
log_format: '<{{ syslogpri .Severity }}>{{ .Date.Format "Jan 02 15:04:05" }} {{ .Hostname }} {{ .JobName }}: {{ .Message }}'
|
||||||
jobs:
|
jobs:
|
||||||
- name: date
|
- name: date
|
||||||
schedule: "0 * * * * *"
|
schedule: "0 * * * * *"
|
||||||
|
@ -27,9 +28,9 @@ jobs:
|
||||||
- "+%+"
|
- "+%+"
|
||||||
```
|
```
|
||||||
|
|
||||||
The `rsyslog_target` parameter needs to be a rsyslog endpoint supporting TCP plain connections like Loggly or Papertrail does.
|
- `rsyslog_target` - needs to be a rsyslog endpoint supporting TCP plain connections like Loggly or Papertrail does.
|
||||||
|
- `log_format` - format to use for generating the log line (above shown is default and does not need to be provided)
|
||||||
The `schedule` parameter consists of 6 instead of the normal 5 fields:
|
- `schedule` - consists of 6 instead of the normal 5 fields:
|
||||||
|
|
||||||
```
|
```
|
||||||
field allowed values
|
field allowed values
|
||||||
|
|
Loading…
Reference in a new issue