archive/cmd/archive-server/config.json.SAMPLE

55 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2017-08-13 04:48:23 +00:00
{
/* 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
}
}
]
}
]
}