From d851cda6308550a1b424489c01677b41948eb413 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 13 Aug 2017 16:48:23 +1200 Subject: [PATCH] track sample configuration file --- cmd/archive-server/config.json.SAMPLE | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 cmd/archive-server/config.json.SAMPLE diff --git a/cmd/archive-server/config.json.SAMPLE b/cmd/archive-server/config.json.SAMPLE new file mode 100644 index 0000000..33b18f2 --- /dev/null +++ b/cmd/archive-server/config.json.SAMPLE @@ -0,0 +1,54 @@ +{ + + /* Timezone (IANA tz format) */ + "Timezone": "Etc/UTC", + + /* Number of lines per page */ + "LinesPerPage": 100, + + /* A list of objects describing each independent log source */ + "Logs": [ + + /* Create one object for each independent log source */ + { + /* Display name for this log source */ + "Description": "my-log-source", + + /* Alternative URL names for this source (the first is preferred) */ + "Slugs": [], + + /* A list of objects describing where files for this source can be found */ + "FileLocation": [ + + /* Create one object for each time-based file location */ + { + + /* + * The full path to the log file. + * Date formatting reference: https://golang.org/pkg/time/#pkg-constants + */ + "LogFilePath": "/path/to/my-log-source/2006-01.log", + + /* + * The first month for which this path is valid. + * Months are 1-based (1=January, 12=December) + */ + "StartMonth": { + "Year": 2010, + "Month": 2 + }, + + /* + * The last month for which this is valid. + * Set `"EndMonth": null` to refer to the current month. + */ + "EndMonth": { + "Year": 2015, + "Month": 7 + } + } + ] + } + + ] +}